/* =========================================================================
   APENTOMOTIS — Landing page styles
   -------------------------------------------------------------------------
   Brand palette (sampled from the official logo):
     • Golden yellow  #FFC93C  → primary action / accent / highlight surfaces
     • Petrol teal    #155263  → dark surfaces + ink (text) on light
   Rule of thumb: yellow is a FILL, never small text on white (contrast).
   Text uses petrol; light text sits on petrol. That keeps the brand bold
   AND accessible.
   Organized top-down: tokens · base · buttons · header · hero · stats ·
   problem · features · how · pricing · faq · demo · footer · utilities ·
   responsive · reduced-motion.
   ========================================================================= */

/* ----------------------------- 1. Tokens ------------------------------- */
:root {
  /* Dark brand surfaces (petrol family) */
  --ink:        #0c2f3a;   /* deepest petrol — hero/footer/demo base       */
  --ink-2:      #103e4b;   /* lifted petrol — stats/secondary dark         */
  --ink-3:      #155263;   /* brand petrol — cards on dark                 */

  /* Action + accent (yellow family) */
  --brand:      #ffc93c;   /* golden yellow — primary action / accent      */
  --brand-strong:#f5b400;  /* amber — hover                                */
  --brand-deep: #9a6f06;   /* deep gold — text accents on light (sparingly)*/

  /* Petrol + warm neutrals for light sections */
  --petrol:     #155263;
  --petrol-ink: #0e3b48;   /* strong petrol for headings/text on light     */
  --cream:      #fff7e7;   /* warm tint section bg                         */
  --cream-2:    #fdeecb;   /* deeper cream                                 */

  /* Text on light */
  --text:       #173b44;   /* petrol-tinted near-black body text           */
  --text-soft:  #4f6970;   /* muted petrol-gray                            */
  --text-faint: #84979d;
  --line:       #e7e3d6;   /* warm hairline border                         */
  --bg:         #ffffff;
  --bg-soft:    #fffaf0;   /* faintest cream                               */

  /* Text on dark */
  --on-dark:    rgba(255,255,255,.92);
  --on-dark-2:  rgba(255,255,255,.66);

  /* Gradients */
  --grad-cta:   linear-gradient(135deg, #ffd357 0%, #ffb703 100%);
  --grad-text:  linear-gradient(110deg, #ffe08a 0%, #ffc93c 55%, #ffeaa6 100%);
  --grad-dark:  radial-gradient(120% 120% at 80% -10%, #1b6075 0%, #0c2f3a 58%);

  /* Shape + depth */
  --radius:     16px;
  --radius-lg:  24px;
  --radius-sm:  10px;
  --shadow:     0 20px 45px -25px rgba(12,47,58,.45);
  --shadow-lg:  0 40px 80px -30px rgba(12,47,58,.55);
  --ring:       0 0 0 4px rgba(255,201,60,.55);

  /* Layout */
  --container:  1140px;
  --gap:        24px;

  /* Type */
  --font-display: "Sora", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------ 2. Base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.02em; color: var(--petrol-ink); }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--petrol); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-strong); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 800px; }

/* Section rhythm */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol); margin: 0 0 .6rem;
}
.kicker.light { color: var(--brand); }
.section-sub { color: var(--text-soft); font-size: 1.08rem; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ----------------------------- 3. Buttons ------------------------------ */
.btn {
  --btn-pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: var(--btn-pad); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
/* Primary = golden fill, petrol text (the brand's natural button). */
.btn-primary {
  background: var(--grad-cta); color: var(--ink);
  box-shadow: 0 12px 28px -10px rgba(255,183,3,.6);
}
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(255,183,3,.72); }
.btn-ghost {
  background: transparent; color: var(--petrol-ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--petrol); background: var(--cream); color: var(--petrol-ink); transform: translateY(-2px); }
/* On dark surfaces the ghost button flips to light-on-dark. */
.hero .btn-ghost, .demo .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.24); background: transparent; }
.hero .btn-ghost:hover, .demo .btn-ghost:hover { color: #fff; border-color: var(--brand); background: rgba(255,255,255,.06); }
.btn-sm { --btn-pad: 9px 16px; font-size: .9rem; }
.btn-lg { --btn-pad: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ------------------------------ 4. Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--petrol-ink); font-weight: 800; }
.brand:hover { color: var(--petrol-ink); }
.brand-logo { height: 38px; width: auto; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -.02em; color: inherit; text-transform: lowercase;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--text-soft); font-weight: 600; font-size: .98rem; }
.main-nav a:hover { color: var(--petrol); }
.main-nav .nav-login { color: var(--petrol-ink); }
.main-nav .nav-cta { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2.5px; background: var(--petrol-ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------- 5. Hero ------------------------------- */
.hero { position: relative; color: var(--on-dark); background: var(--grad-dark); overflow: hidden; isolation: isolate; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
  padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 9vw, 130px);
}

/* Decorative animated gradient blobs + subtle grid */
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite; }
.blob-1 { width: 460px; height: 460px; background: #ffc93c; top: -120px; right: -80px; opacity: .42; }
.blob-2 { width: 380px; height: 380px; background: #1e7d92; bottom: -120px; left: -60px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #ffe08a; top: 30%; left: 40%; opacity: .25; animation-delay: -11s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(30px,-26px) scale(1.08); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--on-dark);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,201,60,.25); }
.hero-copy h1 { color: #fff; }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero-sub { color: var(--on-dark-2); font-size: 1.15rem; max-width: 33em; margin: 18px 0 30px; }
.hero-sub strong { color: var(--on-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-dark-2); font-size: .92rem; }

/* Device mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.device {
  position: relative; width: min(340px, 80%); background: #07222b; border-radius: 34px;
  padding: 14px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: float 6s ease-in-out infinite;
}
.device-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #07222b; border-radius: 0 0 14px 14px; z-index: 2; }
.device-glow { position: absolute; width: 70%; height: 70%; background: radial-gradient(circle, rgba(255,201,60,.42), transparent 70%); filter: blur(50px); z-index: -1; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.mock-screen { background: linear-gradient(180deg, #103e4b, #0c2f3a); border-radius: 24px; padding: 26px 20px 20px; color: #eaf3f5; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: rgba(255,201,60,.14); padding: 5px 10px; border-radius: 999px; }
.mock-status { font-size: .74rem; color: var(--ink); background: var(--brand); padding: 5px 10px; border-radius: 999px; font-weight: 700; }
.mock-title { font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-row span { color: rgba(255,255,255,.52); }
.mock-row b { color: #eef6f7; font-weight: 600; text-align: right; }
.mock-sign { margin: 16px 0; }
.mock-sign span { font-size: .72rem; color: rgba(255,255,255,.5); }
.mock-sign svg { height: 38px; width: 100%; margin-top: 4px; }
.mock-cta { width: 100%; margin-top: 6px; background: var(--grad-cta); color: var(--ink); border: 0; border-radius: 12px; padding: 13px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; cursor: default; }

/* ------------------------------ 6. Stats ------------------------------- */
/* Yellow brand band with petrol text — a deliberate identity moment. */
.stats { background: var(--brand); color: var(--ink); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--ink); }
.stat b span { font: inherit; color: inherit; }    /* the data-count number must match the suffix */
.stat > span { color: #3a4a1e; font-size: .9rem; } /* the label only (dark olive on yellow) */

/* --------------------------- 7. Problem/Solution ----------------------- */
.problem { background: var(--bg); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 920px; margin-inline: auto; }
.ps-card { border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--line); }
.ps-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.ps-card ul li { padding: 10px 0 10px 30px; position: relative; color: var(--text-soft); border-bottom: 1px dashed var(--line); }
.ps-card ul li:last-child { border-bottom: 0; }
.ps-card ul li::before { position: absolute; left: 0; top: 9px; font-size: 1.05rem; }
.ps-pain { background: #fff; }
.ps-pain h3 { color: #b4541f; }
.ps-pain ul li::before { content: "✕"; color: #cf6a43; font-weight: 700; }
.ps-gain { background: linear-gradient(180deg, #fff7e7, #fffaf0); border-color: #fbe2a3; }
.ps-gain h3 { color: var(--petrol-ink); }
.ps-gain ul li { border-bottom-color: #f3e6c2; }
.ps-gain ul li::before { content: "✓"; color: var(--petrol); font-weight: 700; }

/* --------------------------- 7b. AI highlight -------------------------- */
/* Prominent dark band calling out the AI-generated reports. Sits between the
   white Problem section and the cream Features grid for maximum contrast. */
.ai-band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.ai-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 120% at 12% 0%, rgba(255,201,60,.20), transparent 60%),
              radial-gradient(45% 100% at 100% 100%, rgba(34,211,238,.14), transparent 55%);
}
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ai-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--grad-cta); padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(255,183,3,.6);
}
.ai-pill .spark { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.18); } }
.ai-band h2 { color: #fff; }
.ai-copy p { color: var(--on-dark-2); font-size: 1.08rem; margin: 0; }
.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ai-card {
  position: relative; background: var(--ink-3); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 26px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.ai-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ai-badge {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-display); font-weight: 800;
  font-size: .7rem; letter-spacing: .06em; color: var(--ink); background: var(--grad-cta); padding: 4px 9px; border-radius: 999px;
}
.ai-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; font-size: 1.5rem; border-radius: 14px; background: rgba(255,201,60,.12); margin-bottom: 14px; }
.ai-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.ai-card p { color: var(--on-dark-2); font-size: .92rem; margin: 0; }
@media (max-width: 820px) { .ai-inner { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .ai-cards { grid-template-columns: 1fr; } }

/* ----------------------------- 8. Features ----------------------------- */
.features { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.f-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; font-size: 1.5rem;
  border-radius: 14px; background: linear-gradient(180deg, #fff3cf, #ffe49b); margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: .96rem; margin: 0; }

/* -------------------------- 8b. Integrations --------------------------- */
/* Logo wall. flex + justify-center keeps every row centred and caps at ~5 per
   row (chip basis 190px inside the 1140 container). Logos are monochrome petrol. */
.logos { background: var(--bg); }
.logos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-chip {
  flex: 0 1 190px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 124px; padding: 22px 16px; text-align: center;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.logo-chip:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.lc-logo { min-height: 42px; display: flex; align-items: center; justify-content: center; }
.lc-logo img { max-height: 42px; max-width: 152px; width: auto; object-fit: contain; }
.lc-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.15; color: var(--petrol-ink); }
.lc-name { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

/* ---------------------------- 9. How it works -------------------------- */
.how { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-cta); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px; box-shadow: 0 10px 22px -10px rgba(255,183,3,.6);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: .94rem; margin: 0; }
/* Connector line between steps on wide screens */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 53px; right: -14px; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

/* ----------------------------- 10. Pricing ----------------------------- */
.pricing { background: var(--cream); }
/* why: align-items:start lets each tier be its natural height — plans now list
   their full (cumulative) feature sets, so counts differ a lot between tiers. */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.price-card {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.1rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--petrol-ink); margin: 6px 0 2px; }
.price span { font-size: 1.1rem; vertical-align: super; color: var(--text-soft); }
.price small { font-size: .85rem; font-weight: 600; color: var(--text-faint); }
.price-quote { font-size: 1.25rem; }
.price-meta { color: var(--petrol); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.price-card ul { margin-bottom: 22px; }
.price-includes { font-size: .82rem; font-weight: 600; color: var(--text-faint); margin: 0 0 12px; }
.price-card.featured .price-includes { color: var(--on-dark-2); }
.price-card ul li { padding: 7px 0 7px 24px; position: relative; color: var(--text-soft); font-size: .92rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--petrol); font-weight: 700; }
/* Featured tier lifts and inverts to petrol for emphasis. */
.price-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.03); box-shadow: var(--shadow-lg); }
.price-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured .price-meta { color: var(--brand); }
.price-card.featured ul li { color: var(--on-dark-2); }
.price-card.featured ul li::before { color: var(--brand); }
.badge-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-cta); color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}

/* ------------------------------- 11. FAQ ------------------------------- */
.faq { background: var(--bg); }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px;
  background: var(--cream); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem; color: var(--petrol-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-strong); transition: transform .25s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--text-soft); }

/* ------------------------------ 12. Demo ------------------------------- */
.demo { background: var(--ink); color: var(--on-dark); }
.demo-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  background: var(--ink-3); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 56px);
}
.demo-card h2 { color: #fff; }
.demo .section-sub { color: var(--on-dark-2); }
.demo-points { margin: 20px 0; }
.demo-points li { padding: 6px 0; color: var(--on-dark); font-size: .98rem; }
.demo-call { color: var(--on-dark-2); margin-top: 8px; }
.demo-call a { color: var(--brand); font-weight: 700; font-size: 1.15rem; }

.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.demo-form label { font-size: .82rem; font-weight: 600; color: var(--on-dark-2); }
.demo-form input, .demo-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255,255,255,.42); }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,201,60,.25); }
.demo-form .opt { font-weight: 400; color: var(--on-dark-2); font-size: .92em; }
/* VIES-style ΑΦΜ: a fixed EL country-code chip joined to the input. */
.input-group { display: flex; }
.input-group .prefix {
  display: flex; align-items: center; padding: 0 13px; font-family: var(--font-display); font-weight: 700;
  color: var(--brand); background: rgba(255,201,60,.1);
  border: 1px solid rgba(255,255,255,.16); border-right: 0; border-radius: 10px 0 0 10px;
}
.input-group input { border-radius: 0 10px 10px 0 !important; flex: 1; min-width: 0; }
.input-group:focus-within .prefix { border-color: var(--brand); }
.demo-form .btn-block { grid-column: 1 / -1; margin-top: 4px; }
.form-note { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: var(--brand); }
.form-note.err { color: #ffb38a; }
.form-fineprint { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--on-dark-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ------------------------------ 13. Footer ----------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 64px 0 28px; }
/* why: 4-column horizontal footer; base rule was lost in the rebrand rewrite,
   which made the columns stack. The media queries below collapse it on small screens. */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo { height: 92px; width: auto; margin-bottom: 4px; }
.footer-brand p { margin-top: 12px; max-width: 32ch; font-size: .94rem; }
.social { display: flex; gap: 16px; margin-top: 16px; }
.social a { color: var(--on-dark-2); font-weight: 600; font-size: .9rem; }
.social a:hover { color: var(--brand); }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--on-dark-2); padding: 5px 0; font-size: .94rem; }
.footer-col a:hover { color: var(--brand); }
.footer-addr { margin-top: 12px; font-size: .9rem; line-height: 1.5; }
.footer-addr a, .footer-bottom a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.footer-addr a:hover, .footer-bottom a:hover { color: var(--brand); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--text-faint); }

/* --------------------------- 14. Floating CTA -------------------------- */
.floating-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 90; background: var(--grad-cta); color: var(--ink); font-family: var(--font-display);
  font-weight: 700; padding: 14px 28px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .3s ease; display: none;
}
.floating-cta.show { transform: translateX(-50%) translateY(0); }

/* --------------------------- 15. Reveal anim --------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* --------------------------- 16. Responsive ---------------------------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-5px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 820px) {
  /* Mobile nav: slide-down panel toggled by the hamburger. */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 22px;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 12px; border-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
  .hero-visual { order: -1; }
  .device { width: min(280px, 70%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .ps-grid { grid-template-columns: 1fr; }
  .demo-card { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .floating-cta { display: block; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ------------------------- 17. Reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
