/* =========================================================
   CREOVA website (index.html)
   Same identity as the app: violet accent, amber highlights, deep ink.
   ========================================================= */
:root {
  --bg: #f6f5fb;
  --panel: #ffffff;
  --sunken: #f1effa;
  --ink: #1c1840;
  --ink-2: #413c68;
  --muted: #6e6a8c;
  --line: #e8e5f4;
  --line-2: #d7d2ee;
  --accent: #4b3bd6;
  --accent-2: #3a2bb8;
  --accent-soft: #eceaff;
  --amber: #ffb547;
  --radius: 14px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --shadow: 0 1px 2px rgba(28,24,64,.05), 0 6px 20px rgba(28,24,64,.05);
  --shadow-lg: 0 2px 6px rgba(28,24,64,.06), 0 18px 44px rgba(28,24,64,.12);
  --font: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 8px; font: 600 15px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--panel); }
.btn-primary:hover { background: #33312c; }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--panel); color: var(--ink); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 242, 237, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 7px; background: var(--ink); color: var(--panel); display: grid; place-items: center; font: 800 16px 'Cairo', var(--font); }
.logo-name { font: 800 17px 'Cairo', var(--font); letter-spacing: 2px; }
.top-nav { display: flex; gap: 22px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
.top-cta { margin-inline-start: auto; display: flex; gap: 8px; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-2); margin-top: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
.hero-art { position: relative; display: grid; grid-template-columns: 1fr 0.8fr; gap: 16px; align-items: end; }
.shot { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.shot img { border-radius: 6px; }
.shot.b { margin-bottom: 40px; }

/* Who */
.band { border-block: 1px solid var(--line); background: var(--panel); }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 18px; font-size: 15px; }
.who span { color: var(--muted); }
.who b { font-weight: 600; color: var(--ink-2); }

/* Sections */
.sec { padding: 80px 0; }
.sec.alt { background: var(--sunken); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: 32px; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
#pricing .sec-head, #faq .sec-head { margin-inline: auto; text-align: center; }

.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.how li { padding: 22px 0 0; padding-inline-end: 32px; }
.how .n { font: 800 15px 'Cairo', var(--font); color: var(--accent); }
.how h3 { font-size: 20px; margin: 6px 0 8px; }
.how p { color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; border: 1px solid var(--line-2); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); }
.features > div { padding: 22px; border-bottom: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2); }
.features h3 { font-size: 17px; margin-bottom: 6px; }
.features p { color: var(--ink-2); font-size: 15px; }

/* Pricing */
.period { display: flex; width: max-content; margin: 0 auto 30px; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; background: var(--panel); }
.period button { border: 0; background: transparent; padding: 7px 18px; border-radius: 7px; font: 500 15px var(--font); cursor: pointer; color: var(--ink-2); }
.period button.on { background: var(--ink); color: var(--panel); }
.period small { opacity: .8; font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; margin-bottom: 20px; }
.plan { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--ink); }
.plan .flag { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--ink); color: var(--panel); font-size: 13px; font-weight: 600; padding: 1px 10px; border-radius: 4px; }
.plan h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.price b { font-size: 44px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.per-month { color: var(--muted); font-size: 14px; margin-top: 4px; }
.save { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 9px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.plan li { padding-inline-start: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; inset-inline-start: 3px; top: .6em; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 680px; }

/* Final CTA & footer */
.final { background: var(--ink); color: #f1eee6; padding: 64px 0; }
.final-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.final h2 { font-size: 30px; color: #fff; }
.final p { color: #b9b5aa; margin-top: 8px; }
.foot { padding: 26px 0; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1000px) {
  .top-nav { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .hero-art { max-width: 560px; }
  .gallery, .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-in { gap: 12px; }
  .top-cta .btn { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 29px; }
  .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .sec { padding: 56px 0; }
  .sec-head h2 { font-size: 26px; }
  .how { grid-template-columns: 1fr; }
  .how li { padding-inline-end: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .gallery { gap: 10px; }
  .features { grid-template-columns: 1fr; }
  .final h2 { font-size: 24px; }
  .final .btn { flex: 1; }
}

/* =========================================================
   Theme v2: violet identity and gentle motion
   ========================================================= */
h1, h2, h3 { font-weight: 600; }
.btn { border-radius: 10px; font-weight: 500; transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 6px 18px rgba(75, 59, 214, .28); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--amber); color: var(--ink); }
.btn-light:hover { background: #ffc66e; }
.top { background: rgba(246, 245, 251, .9); }
.logo-svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo-name { font: 600 17px var(--font); letter-spacing: 3px; direction: ltr; }
.top-nav a:hover { color: var(--accent); }
.kicker { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.hero h1 { font-weight: 700; letter-spacing: -.3px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.shot { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow-lg); padding: 8px; transition: transform .4s var(--ease); }
.shot img { border-radius: 10px; }
.shot.a { transform: rotate(-2deg); }
.shot.b { transform: rotate(2.5deg); }
.hero-art:hover .shot.a { transform: rotate(-1deg) translateY(-6px); }
.hero-art:hover .shot.b { transform: rotate(1deg) translateY(-6px); }
.band { background: var(--panel); }
.sec.alt { background: var(--sunken); }
.how { border-top: 0; gap: 18px; }
.how li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.how .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; font: 600 15px var(--font); }
.gallery img { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gallery figure:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.features { border: 0; gap: 14px; }
.features > div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.features > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.features h3::before { content: ''; display: block; width: 26px; height: 4px; border-radius: 2px; background: var(--amber); margin-bottom: 12px; }
.period { border-radius: 12px; }
.period button { border-radius: 9px; }
.period button.on { background: var(--accent); color: #fff; }
.plan { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(75, 59, 214, .16); }
.plan .flag { background: var(--amber); color: var(--ink); border-radius: 6px; }
.final { background: var(--ink); }
.final h2 { color: #fff; }
.final p { color: #a39fcc; }
.foot a:hover { color: var(--accent); }

/* Scroll reveal (landing.js adds .reveal and .in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-in > div:first-child > * { animation: rise .6s var(--ease) both; }
.hero-in > div:first-child > :nth-child(2) { animation-delay: .06s; }
.hero-in > div:first-child > :nth-child(3) { animation-delay: .12s; }
.hero-in > div:first-child > :nth-child(4) { animation-delay: .18s; }
.hero-art { animation: rise .8s .15s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Value comparison */
.compare { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; align-items: center; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > * { padding: 16px 22px; }
.cmp-row b { font-weight: 600; }
.cmp-row span { color: var(--muted); }
.cmp-row .cmp-us { color: var(--ink); font-weight: 500; background: var(--accent-soft); height: 100%; display: flex; align-items: center; gap: 10px; }
.cmp-head { font-size: 15px; }
.cmp-head span { color: var(--ink-2); font-weight: 600; }
.cmp-head .cmp-us { color: var(--accent-2); font-weight: 600; }
.logo-svg.sm { width: 24px; height: 24px; }
.value-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.value-points > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.value-points b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.value-points p { color: var(--ink-2); font-size: 15px; }

/* Coming soon */
.soon { background: var(--ink); color: #e7e5f8; }
.soon .sec-head h2 { color: #fff; }
.soon .sec-head p { color: #a39fcc; }
.soon-kicker { display: inline-block; background: var(--amber); color: var(--ink); font-weight: 600; font-size: 13px; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.soon-card:hover { transform: translateY(-4px); border-color: rgba(255, 181, 71, .5); background: rgba(255, 255, 255, .08); }
.soon-ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(75, 59, 214, .35); stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.soon-card h3 { color: #fff; font-size: 19px; }
.soon-card p { color: #bcb8e0; font-size: 15px; flex: 1; }
.soon-card .btn { margin-top: 10px; align-self: flex-start; }
@media (max-width: 1000px) {
  .soon-grid, .value-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > b { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-head > span:first-child { display: none; }
  .cmp-row > * { padding: 12px 14px; font-size: 14px; }
  .cmp-row .cmp-us { height: auto; }
}
