*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #F9F9F7;
  --bg-card: #FFFFFF;
  --cream2:  #EFEDE9;
  --text:    #1C1C1E;
  --text2:   #4A4A52;
  --text3:   #8A8A94;
  --coral:   #E8956B;
  --coral-hover: #D97D52;
  --indigo:  #3B3B8E;
  --gold:    #F2C744;
  --green:   #6BAE8C;
  --purple:  #9B7FD4;
  --red:     #D45F5F;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TYPOGRAPHY (updated) ── */
h1, h2, h3 {
  font-family: 'Lora', serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.15; }
p  { font-size: clamp(1rem, 1.5vw, 1.05rem); line-height: 1.75; color: var(--text2); }

/* ── UTILITY ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.sp { padding: 7rem 0; }
.sec-eye {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--coral); margin-bottom: .85rem;
}
.sec-eye .el { width: 14px; height: 2px; background: var(--coral); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  transition: background .4s, box-shadow .4s, padding .4s, color .4s;
}
/* Before scroll: transparent on dark hero */
.nav-logo {
  font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 600;
  color: rgba(250,250,248,.9); letter-spacing: .01em; text-decoration: none;
  transition: color .4s;
}
.nav-logo .dot { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-sw {
  display: flex; align-items: center;
  background: rgba(255,255,255,.1); border-radius: 100px; padding: 3px;
  transition: background .4s;
}
.lang-btn {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  padding: .28rem .6rem; border-radius: 100px;
  border: none; background: transparent; cursor: pointer; color: rgba(250,250,248,.5);
  transition: background .25s, color .25s, box-shadow .25s;
}
.lang-btn.active {
  background: rgba(255,255,255,.15); color: rgba(250,250,248,.95);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.nav-cta {
  font-size: .82rem; font-weight: 600;
  background: var(--coral); color: #fff;
  padding: .52rem 1.2rem; border-radius: 100px;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,149,107,.35);
  background: var(--coral-hover);
}
/* After scroll: cream glass on light sections */
nav.scrolled {
  background: rgba(249,249,247,.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(28,28,30,.07);
  padding-top: .7rem; padding-bottom: .7rem;
}
nav.scrolled .nav-logo { color: var(--text); }
nav.scrolled .lang-sw { background: rgba(28,28,30,.06); }
nav.scrolled .lang-btn { color: var(--text3); }
nav.scrolled .lang-btn.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(28,28,30,.1); }
nav.scrolled .nav-cta { background: var(--indigo); }
nav.scrolled .nav-cta:hover { background: #2E2E75; box-shadow: 0 6px 20px rgba(59,59,142,.32); }
/* Non-home pages: dark nav from the start */
nav.nav-dark { background: rgba(249,249,247,.92); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 rgba(28,28,30,.07); padding-top: .7rem; padding-bottom: .7rem; }
nav.nav-dark .nav-logo { color: var(--text); }
nav.nav-dark .lang-sw { background: rgba(28,28,30,.06); }
nav.nav-dark .lang-btn { color: var(--text3); }
nav.nav-dark .lang-btn.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(28,28,30,.1); }
nav.nav-dark .nav-cta { background: var(--indigo); }
nav.nav-dark .nav-cta:hover { background: #2E2E75; box-shadow: 0 6px 20px rgba(59,59,142,.32); }

/* ── HERO (cinematic, no gradient) ── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 0 2rem 4.5rem;
  position: relative; overflow: hidden;
  background: #2A2A6B;
}
.hero-bg {
  position: absolute; inset: -60px 0 0 0; z-index: 0;
  background: url('/img/hero_illustration_v2.webp') center top / cover no-repeat;
  opacity: 0; animation: fadeIn 1.2s .1s forwards;
  will-change: transform;
}
/* Subtle vignette at the very bottom for text safety — NOT a cream gradient */
.hero-bg::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  background: linear-gradient(
    to bottom,
    rgba(42,42,107,0) 0%,
    rgba(42,42,107,.3) 60%,
    rgba(42,42,107,.55) 100%
  );
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.12); color: var(--coral);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px;
  margin-bottom: 1.3rem;
  opacity: 0; animation: fadeUp .6s .3s forwards;
  position: relative; z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.1);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); animation: pulse 2s ease-in-out infinite;
}
.hero-headline {
  text-align: center; position: relative; z-index: 2;
  max-width: 700px; margin-bottom: 1rem;
  opacity: 0; animation: fadeUp .7s .45s forwards;
  color: rgba(250,250,248,.95);
}
.hero-headline em { font-style: italic; color: var(--coral); }
.hero-sub {
  text-align: center; position: relative; z-index: 2;
  max-width: 500px; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .7s .6s forwards;
  color: rgba(250,250,248,.6);
}
.hero-actions {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
  justify-content: center; position: relative; z-index: 2;
  opacity: 0; animation: fadeUp .7s .75s forwards;
}
.btn-p {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--indigo); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .88rem; font-weight: 600;
  padding: .82rem 1.8rem; border-radius: 100px; border: none; cursor: pointer; text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,59,142,.35);
  background: #2E2E75;
}
.btn-s {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.7); color: var(--text2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .86rem; font-weight: 500;
  padding: .82rem 1.45rem; border-radius: 100px;
  border: 1.5px solid rgba(28,28,30,.08); cursor: pointer; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-s:hover { background: rgba(255,255,255,.9); color: var(--coral); border-color: var(--coral); }

/* Hero-specific button overrides for dark background */
#hero .btn-p {
  background: var(--coral); color: #fff;
}
#hero .btn-p:hover {
  background: var(--coral-hover);
  box-shadow: 0 8px 28px rgba(232,149,107,.4);
}
#hero .btn-s {
  background: rgba(255,255,255,.1); color: rgba(250,250,248,.85);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#hero .btn-s:hover {
  background: rgba(255,255,255,.18); color: #fff;
  border-color: rgba(255,255,255,.3);
}

/* ── PHONE FRAME (features) ── */
.pframe {
  border-radius: 34px; overflow: hidden;
  background: #fff;
  box-shadow:
    0 24px 64px rgba(28,28,30,.12),
    0 6px 20px rgba(28,28,30,.06),
    inset 0 0 0 1px rgba(28,28,30,.04);
  flex-shrink: 0;
  transition: transform .5s cubic-bezier(.23,1,.32,1), box-shadow .5s ease;
}
.pframe:hover {
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg) scale(1.02);
  box-shadow:
    0 32px 80px rgba(28,28,30,.15),
    0 8px 24px rgba(28,28,30,.08),
    inset 0 0 0 1px rgba(28,28,30,.04);
}
.pframe img { display: block; width: 100%; }

/* ── RIBBON DIVIDER ── */
.rdiv {
  width: 100%; overflow: visible; line-height: 0;
  pointer-events: none; height: 80px;
  position: relative;
}
.rdiv svg { width: 100%; height: 100%; overflow: visible; }

/* Hero-to-cream bridge */
.hero-bridge {
  background: linear-gradient(to bottom, #2A2A6B 0%, #3B3B8E 30%, var(--bg) 100%);
  padding: 1rem 0;
}

/* ── STORY ── */
#story { background: var(--bg); }
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; }
.story-text h2 { margin-bottom: 1.4rem; }
.story-text p { margin-bottom: .9rem; }
.story-quote {
  margin: 1.75rem 0; padding: 1.4rem 1.75rem;
  border-left: 3px solid var(--coral);
  background: rgba(232,149,107,.06); border-radius: 0 16px 16px 0;
}
.story-quote p {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 1.05rem !important; color: var(--text) !important; line-height: 1.6 !important;
}

/* ── PRODUCT SHOT (NEW) ── */
#product-shot { background: var(--bg); }
.ps-inner { text-align: center; }
.ps-inner h2 { margin-bottom: 3rem; }
.ps-device-wrap {
  display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
}
.ps-device {
  position: relative;
  width: 320px;
  background: #1C1C1E;
  border-radius: 52px;
  padding: 14px;
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform .7s cubic-bezier(.23,1,.32,1), box-shadow .7s ease;
  box-shadow:
    0 60px 120px rgba(28,28,30,.22),
    0 20px 50px rgba(28,28,30,.12),
    inset 0 0 0 2px rgba(255,255,255,.06);
}
.ps-device:hover {
  transform: rotateY(-3deg) rotateX(1deg) scale(1.02);
  box-shadow:
    0 70px 140px rgba(28,28,30,.26),
    0 24px 60px rgba(28,28,30,.14),
    inset 0 0 0 2px rgba(255,255,255,.08);
}
.ps-device::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #1C1C1E;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}
.ps-screen {
  border-radius: 40px; overflow: hidden;
  background: #fff;
}
.ps-screen img { display: block; width: 100%; }
/* Glow behind device */
.ps-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(59,59,142,.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ── PRIVACY ── */
#privacy { background: var(--bg); }
.priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.priv-text h2 { margin-bottom: 1.2rem; }
.priv-text p { margin-bottom: .9rem; }
.priv-pts { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.priv-pts li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .88rem; color: var(--text2);
}
.priv-pts li::before {
  content: '✦'; color: var(--green); flex-shrink: 0;
  font-size: .62rem; margin-top: .3em;
}

/* Privacy diagram (with animation) */
.priv-diag {
  background: var(--bg); border-radius: 28px;
  padding: 2.25rem; display: flex; flex-direction: column; gap: .85rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(28,28,30,.05);
}
.priv-blk {
  background: var(--cream2); border-radius: 16px; padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: .9rem;
  transition: transform .3s ease;
  opacity: 0; transform: translateY(16px);
}
.priv-blk:hover { transform: translateX(3px) translateY(0) !important; }
.priv-diag.animated .priv-blk {
  animation: privFadeUp .5s ease forwards;
}
.priv-diag.animated .priv-blk:nth-child(2) { animation-delay: 0s; }
.priv-diag.animated .priv-blk:nth-child(4) { animation-delay: .6s; }
.priv-diag.animated .priv-blk:nth-child(6) { animation-delay: 1.2s; }
@keyframes privFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.priv-ico-wrap {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.priv-ico-wrap.device { background: rgba(59,59,142,.1); }
.priv-ico-wrap.cloud  { background: rgba(107,174,140,.1); }
.priv-ico-wrap.partner { background: rgba(232,149,107,.1); }
.priv-ico-wrap svg { width: 20px; height: 20px; }
.priv-lbl { font-size: .83rem; font-weight: 600; color: var(--text); }
.priv-sub2 { font-size: .72rem; color: var(--text3); margin-top: .08rem; }

/* Privacy arrows (animated draw) */
.priv-arr {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  color: var(--green); font-size: .65rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .15rem 0;
  opacity: 0;
}
.priv-diag.animated .priv-arr:nth-child(3) {
  animation: privFadeUp .4s ease .3s forwards;
}
.priv-diag.animated .priv-arr:nth-child(5) {
  animation: privFadeUp .4s ease .9s forwards;
}
.priv-ln { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); }
.priv-arr svg.arrow-line {
  width: 100%; height: 2px;
}
.priv-arr svg.arrow-line line {
  stroke: var(--green); stroke-width: 2;
  stroke-dasharray: 200; stroke-dashoffset: 200;
}
.priv-diag.animated .priv-arr:nth-child(3) svg.arrow-line line {
  animation: drawLine .6s ease .35s forwards;
}
.priv-diag.animated .priv-arr:nth-child(5) svg.arrow-line line {
  animation: drawLine .6s ease .95s forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.priv-badge {
  display: inline-flex; align-items: center; gap: .28rem;
  background: rgba(107,174,140,.1); color: var(--green);
  font-size: .64rem; font-weight: 600;
  padding: .18rem .55rem; border-radius: 100px;
  margin-top: .3rem;
}
.priv-no {
  position: absolute; top: -12px; right: 18px;
  background: #fff; border: 1.5px solid rgba(212,95,95,.25);
  color: var(--red); font-size: .66rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 100px;
  box-shadow: 0 2px 8px rgba(212,95,95,.08);
  opacity: 0;
}
.priv-diag.animated .priv-no {
  animation: privFadeUp .4s ease 1.5s forwards;
}

/* ── FEATURES (Apple-style accordion + screenshot) ── */
#features { background: var(--bg); }
.feat-header { text-align: center; margin-bottom: 4.5rem; }

.feat-explore {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

/* Left: pill list */
.feat-pills { display: flex; flex-direction: column; gap: .5rem; position: sticky; top: 100px; }

.feat-pill {
  background: #fff; border-radius: 18px;
  border: 1.5px solid rgba(28,28,30,.06);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.feat-pill.active {
  border-color: rgba(232,149,107,.25);
  box-shadow: 0 8px 28px rgba(28,28,30,.05);
}
.feat-pill-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem;
  gap: .75rem;
}
.feat-pill-title {
  font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 500;
  color: var(--text); letter-spacing: -0.01em;
}
.feat-pill-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(28,28,30,.04);
  transition: background .3s, transform .3s;
}
.feat-pill.active .feat-pill-icon {
  background: rgba(232,149,107,.1);
  transform: rotate(45deg);
}
.feat-pill-icon svg { width: 14px; height: 14px; stroke: var(--text3); stroke-width: 1.8; }
.feat-pill.active .feat-pill-icon svg { stroke: var(--coral); }

.feat-pill-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.23,1,.32,1), padding .3s ease;
  padding: 0 1.4rem;
}
.feat-pill.active .feat-pill-body {
  max-height: 300px;
  padding: 0 1.4rem 1.3rem;
}
.feat-pill-body p {
  font-size: .88rem; line-height: 1.65; color: var(--text2);
  margin-bottom: .7rem;
}
.feat-pill-body .feat-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(232,149,107,.1); color: var(--coral);
  padding: .25rem .7rem; border-radius: 100px;
}

/* Right: screenshot display */
.feat-screen-wrap {
  position: sticky; top: 100px;
  display: flex; justify-content: center; align-items: flex-start;
  perspective: 1000px;
  min-height: 500px;
}
.feat-screen-img {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(300px, 85%);
  border-radius: 34px; overflow: hidden;
  background: #fff;
  box-shadow:
    0 24px 64px rgba(28,28,30,.12),
    0 6px 20px rgba(28,28,30,.06),
    inset 0 0 0 1px rgba(28,28,30,.04);
  opacity: 0;
  transition: opacity .4s ease, transform .4s cubic-bezier(.23,1,.32,1);
  pointer-events: none;
}
.feat-screen-img.active {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) rotateY(-3deg);
}
.feat-screen-img img { display: block; width: 100%; }

/* Mobile feature description card (shown separately from pills) */
.feat-mobile-desc {
  display: none;
}

/* Mobile: horizontal scrollable pills below screenshot */
@media (max-width: 768px) {
  .feat-explore {
    display: flex; flex-direction: column;
    gap: 0;
    max-width: 100%;
  }

  /* Screenshot on top */
  .feat-screen-wrap {
    position: relative;
    min-height: auto;
    order: 1;
    margin-bottom: -2rem;
    z-index: 1;
  }
  .feat-screen-img {
    position: relative; left: auto; top: auto;
    transform: none; width: min(240px, 60%);
    margin: 0 auto;
    display: none;
  }
  .feat-screen-img.active {
    display: block;
    transform: none;
  }

  /* Description card overlapping screenshot bottom */
  .feat-mobile-desc {
    display: block;
    order: 2;
    position: relative; z-index: 2;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.25rem 1.4rem;
    margin: 0 .25rem 1.2rem;
    border: 1px solid rgba(28,28,30,.06);
    box-shadow: 0 8px 24px rgba(28,28,30,.06);
  }
  .feat-mobile-desc .fmd-title {
    font-family: 'Lora', serif; font-size: 1rem; font-weight: 500;
    color: var(--text); margin-bottom: .5rem;
    letter-spacing: -0.01em;
  }
  .feat-mobile-desc .fmd-text {
    font-size: .82rem; line-height: 1.6; color: var(--text2);
    margin-bottom: .6rem;
  }
  .feat-mobile-desc .feat-tag {
    font-size: .64rem;
  }

  /* Pill tabs: horizontal scroll, title only */
  .feat-pills {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: .45rem;
    padding: 0 0 .5rem;
    order: 3;
    max-width: 100%;
    width: 100%;
    overscroll-behavior-x: contain;
  }
  .feat-pills::-webkit-scrollbar { display: none; }
  .feat-pill {
    flex: 0 0 auto;
    min-width: auto;
    border-radius: 100px;
    background: var(--cream2);
    border-color: transparent;
  }
  .feat-pill.active {
    background: #fff;
    border-color: rgba(232,149,107,.3);
    box-shadow: 0 2px 10px rgba(28,28,30,.05);
  }
  /* Hide body inside pills on mobile — description is in .feat-mobile-desc */
  .feat-pill-body { display: none !important; max-height: 0 !important; padding: 0 !important; }
  .feat-pill-head { padding: .65rem 1rem; }
  .feat-pill-title { font-size: .8rem; white-space: nowrap; }
  .feat-pill-icon { display: none; }
}

/* ── ROADMAP (vertical timeline) ── */
#roadmap { background: var(--bg); }
.rm-hdr { text-align: center; margin-bottom: 3.5rem; }
.rm-hdr h2 { margin-bottom: .6rem; }

.rm-timeline { position: relative; max-width: 640px; margin: 0 auto; }
.rm-timeline::before {
  content: '';
  position: absolute; left: 18px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--green), var(--coral), var(--text3));
  border-radius: 2px;
}

.rm-group { margin-bottom: 2.5rem; }
.rm-group:last-child { margin-bottom: 0; }
.rm-group-label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text2);
  margin-bottom: 1rem; padding-left: 42px;
}
.rm-gdot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.rm-gdot.done { background: var(--green); box-shadow: 0 0 0 3px rgba(107,174,140,.2); }
.rm-gdot.soon { background: var(--coral); box-shadow: 0 0 0 3px rgba(232,149,107,.2); }
.rm-gdot.plan { background: var(--text3); box-shadow: 0 0 0 3px rgba(138,138,148,.14); }

.rm-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .5rem 0 .5rem 0;
  position: relative;
}
.rm-item-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: .35em;
  position: relative; z-index: 1;
  margin-left: 13px;
}
.rm-item-dot.done { background: var(--green); }
.rm-item-dot.soon { background: var(--coral); }
.rm-item-dot.plan { background: var(--text3); }
.rm-item-text { font-size: .88rem; color: var(--text2); }

/* ── CTA PRE-FOOTER (NEW) ── */
#cta-pre {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(232,149,107,.06) 100%);
  padding: 5rem 2rem;
}
.cta-pre-inner {
  max-width: 600px; margin: 0 auto; text-align: center;
}
.cta-pre-inner img {
  width: 160px; border-radius: 22%; margin-bottom: 2rem;
  box-shadow: 0 16px 48px rgba(28,28,30,.1);
}
.cta-pre-inner h2 { margin-bottom: 1rem; }
.cta-pre-inner p { margin-bottom: 2rem; }

/* ── BETA ── */
#beta { background: var(--bg); }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(250,250,248,.55); padding: 3rem 2rem 2.5rem; }
.footer-in { max-width: 1120px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250,250,248,.08);
  margin-bottom: 1.5rem;
}
.footer-brand { max-width: 300px; }
.footer-logo {
  font-family: 'Lora', serif; font-size: 1.15rem; font-weight: 600;
  color: rgba(250,250,248,.9); display: block; margin-bottom: .5rem;
}
.footer-logo .dot { color: var(--coral); }
.footer-tagline { font-size: .8rem; color: rgba(250,250,248,.35); line-height: 1.55; }
.footer-cta-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.footer-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--coral); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem; font-weight: 600;
  padding: .55rem 1.25rem; border-radius: 100px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.footer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,149,107,.35);
  background: var(--coral-hover);
}
.footer-made {
  font-size: .72rem; color: rgba(250,250,248,.3);
  display: flex; align-items: center; gap: .3rem;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .76rem; color: rgba(250,250,248,.35);
  text-decoration: none; transition: color .25s;
}
.footer-links a:hover { color: rgba(250,250,248,.75); }
.footer-copy { font-size: .72rem; color: rgba(250,250,248,.2); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 300;
  background: rgba(28,28,30,.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  color: rgba(250,250,248,.85);
  border-radius: 100px;
  padding: .6rem .7rem .6rem 1.3rem;
  display: flex; align-items: center; gap: .9rem;
  font-size: .8rem; line-height: 1.4;
  box-shadow: 0 8px 32px rgba(28,28,30,.2), 0 2px 8px rgba(28,28,30,.1);
  max-width: min(580px, calc(100vw - 2rem));
  opacity: 0; transform: translateX(-50%) translateY(20px);
  animation: cookieIn .5s .8s forwards;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: rgba(250,250,248,.55); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: rgba(250,250,248,.85); }
.cookie-btns { display: flex; gap: .4rem; flex-shrink: 0; }
.cookie-accept {
  background: #fff; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .72rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 100px;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.cookie-accept:hover { transform: scale(1.04); box-shadow: 0 2px 10px rgba(255,255,255,.15); }
@keyframes cookieIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .12s; }
.rd2 { transition-delay: .22s; }
.rd3 { transition-delay: .32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.25rem; }
  p  { font-size: 1.05rem; line-height: 1.7; }
  .sec-eye { font-size: .74rem; }
  .feat-tag { font-size: .78rem; }
  .rm-item-text { font-size: .95rem; }
  .priv-pts li { font-size: 1rem; }
  .story-quote p { font-size: 1.1rem !important; }

  nav { padding: .85rem 1.2rem; }

  #hero { padding: 0 1.25rem 3rem; min-height: 100svh; }
  .hero-bg { background-position: center 15%; }
  .hero-headline { max-width: 100%; }
  .hero-sub { max-width: 100%; }

  .story-grid, .priv-grid {
    grid-template-columns: 1fr; gap: 2.5rem;
  }

  .ps-device { width: 260px; transform: rotateY(-4deg) rotateX(2deg); border-radius: 42px; padding: 10px; }
  .ps-device::before { width: 80px; height: 22px; border-radius: 0 0 14px 14px; }
  .ps-screen { border-radius: 34px; }

  .rm-timeline { max-width: 100%; }

  .sp { padding: 4.5rem 0; }
  .container { padding: 0 1.25rem; }
  .rdiv { height: 50px; }
  .rdiv path { stroke-width: 16 !important; }

  .footer-top { flex-direction: column; }
  .footer-cta-wrap { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .7rem; }
}

@media (max-width: 480px) {
  .cookie-banner {
    border-radius: 20px; flex-direction: column;
    padding: 1rem 1.2rem; gap: .7rem; text-align: center;
    bottom: .75rem;
  }
  .cookie-btns { width: 100%; justify-content: center; }
  .ps-device { width: 220px; border-radius: 36px; padding: 8px; }
  .ps-device::before { width: 70px; height: 20px; }
  .ps-screen { border-radius: 30px; }
}

/* ── SMALL PHONES (iPhone SE, etc.) ── */
@media (max-width: 400px) {
  nav { padding: .7rem .8rem; gap: .4rem; }
  .nav-logo { font-size: 1rem; }
  .nav-right { gap: .5rem; }
  .nav-cta { font-size: .7rem; padding: .42rem .8rem; }
  .lang-btn { font-size: .62rem; padding: .22rem .45rem; }

  #hero { padding: 0 1rem 2rem; }
  .hero-badge { font-size: .62rem; padding: .3rem .75rem; margin-bottom: 1rem; }
  h1 { font-size: 2rem; }
  .hero-sub { font-size: .9rem; }
  .btn-p { font-size: .82rem; padding: .72rem 1.4rem; }
  .btn-s { font-size: .8rem; padding: .72rem 1.1rem; }
  .hero-actions { gap: .5rem; }

  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .sp { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
}

/* ══════════════════════════════════════════
   FEATURE PAGE LAYOUT
   ══════════════════════════════════════════ */
.feat-page-hero { background: var(--bg); }
.feat-page-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.feat-page-hero-text h1 { margin-bottom: .8rem; }
.feat-page-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.7; color: var(--text2); margin-bottom: 1.2rem;
}
.feat-page-hero-phone {
  display: flex; justify-content: center;
  perspective: 1000px;
}
.feat-page-hero-phone .pframe {
  width: min(280px, 85%);
  transform: rotateY(-3deg);
}
.feat-page-content h2 {
  margin-top: 2.5rem; margin-bottom: .8rem;
}
.feat-page-content h3 {
  margin-top: 2rem; margin-bottom: .6rem;
}
.feat-page-content p {
  margin-bottom: 1rem;
}
.feat-page-content ul, .feat-page-content ol {
  margin-bottom: 1rem; padding-left: 1.2rem;
}
.feat-page-content li {
  margin-bottom: .4rem; font-size: clamp(1rem, 1.5vw, 1.05rem);
  line-height: 1.7; color: var(--text2);
}
.feat-page-content img {
  border-radius: 20px; margin: 1.5rem 0;
  box-shadow: 0 12px 40px rgba(28,28,30,.08);
  max-width: 100%;
}

@media (max-width: 768px) {
  .feat-page-hero-grid {
    grid-template-columns: 1fr; gap: 2rem;
  }
  .feat-page-hero-phone .pframe {
    width: min(240px, 70%); transform: none;
  }
}

/* ══════════════════════════════════════════
   GENERIC PAGE LAYOUT
   ══════════════════════════════════════════ */
.page-hero { background: var(--bg); padding-top: 6rem; }
.page-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.7; color: var(--text2); margin-top: .6rem;
}
.page-content h2 { margin-top: 2.5rem; margin-bottom: .8rem; }
.page-content h3 { margin-top: 2rem; margin-bottom: .6rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol {
  margin-bottom: 1rem; padding-left: 1.2rem;
}
.page-content li {
  margin-bottom: .4rem; font-size: clamp(1rem, 1.5vw, 1.05rem);
  line-height: 1.7; color: var(--text2);
}

/* ══════════════════════════════════════════
   FAQ LAYOUT
   ══════════════════════════════════════════ */
.faq-content { background: var(--bg); }
.faq-item {
  border-bottom: 1px solid rgba(28,28,30,.06);
}
.faq-q {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; border: none; background: none;
  cursor: pointer; text-align: left;
  font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 500;
  color: var(--text); letter-spacing: -0.01em;
  transition: color .25s;
}
.faq-q:hover { color: var(--coral); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.faq-icon svg { width: 14px; height: 14px; stroke: var(--text3); stroke-width: 1.8; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-icon svg { stroke: var(--coral); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.23,1,.32,1), padding .3s ease;
  padding: 0;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 0 1.3rem;
}
.faq-a p {
  font-size: .92rem; line-height: 1.7; color: var(--text2);
}

/* ══════════════════════════════════════════
   RESOURCES LAYOUT
   ══════════════════════════════════════════ */
.resources-content { background: var(--bg); }
.resources-content h2 { margin-top: 2.5rem; margin-bottom: .8rem; }
.resources-content p { margin-bottom: 1rem; }
.resources-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-top: 2.5rem;
}
.resource-group h3 {
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--coral);
}
.resource-item {
  background: #fff; border-radius: 16px;
  padding: 1.2rem 1.4rem; margin-bottom: .8rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.resource-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,28,30,.06);
}
.resource-name {
  font-family: 'Lora', serif; font-size: .95rem;
  font-weight: 600; color: var(--text); margin-bottom: .3rem;
}
.resource-detail {
  font-size: .82rem; color: var(--text2); margin-bottom: .15rem;
}
.resource-detail a { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; }
.resource-desc {
  font-size: .78rem; color: var(--text3); margin-top: .3rem; line-height: 1.5;
}

@media (max-width: 768px) {
  .resources-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SCREENSHOT GALLERY (feature pages)
   ══════════════════════════════════════════ */
.screenshot-gallery {
  margin: 3rem 0 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(28,28,30,.06);
  /* Break out of the 780px container to use full viewport width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.screenshot-gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-scroll {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 2rem 1.5rem;
}
.gallery-item {
  text-align: center;
}
.gallery-item .gallery-phone {
  width: 200px;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(28,28,30,.10), 0 4px 12px rgba(28,28,30,.06);
  transition: transform .4s ease;
}
.gallery-item .gallery-phone:hover {
  transform: translateY(-6px);
}
.gallery-item .gallery-caption {
  margin-top: .8rem;
  font-size: .82rem;
  color: var(--text3);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
  .gallery-scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .gallery-scroll::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .gallery-item .gallery-phone {
    width: 170px;
    border-radius: 20px;
  }
}

/* ══════════════════════════════════════════
   CTA SECTION (standalone, for feature pages)
   ══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(232,149,107,.06) 100%);
}
