/* Epoch site: sections, sub-pages and responsive rules (load right after site.css). */
/* ── Sections ────────────────────────────────────────── */
.section { position: relative; z-index: 1; padding-top: clamp(88px, 10vw, 128px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.label {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent-text);
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section h2 { margin-top: 16px; font-size: clamp(2.15rem, 4.8vw, 3.5rem); letter-spacing: -.04em; line-height: 1.04; }
.section-head p { margin-top: 18px; font-size: 1.1rem; }
.clip { overflow-x: clip; }

/* feature grid: each card keyed by an app category colour */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.feature { padding: 30px 28px 28px; border-radius: var(--r-lg); overflow: hidden; }
.feature .key { display: flex; align-items: center; justify-content: space-between; }
.feature .key i { width: 30px; height: 3px; border-radius: 2px; background: var(--c, var(--accent)); box-shadow: 0 0 14px var(--c, var(--accent)); }
.feature .key b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.feature svg { display: block; width: 26px; height: 26px; margin-top: 22px; color: var(--accent-light); }
.feature h3 { margin-top: 14px; font-size: 1.22rem; letter-spacing: -.02em; }
.feature p { margin-top: 10px; font-size: .98rem; }

/* deep dives: copy, verified facts and a real UI crop */
.dives { border-top: 1px solid var(--line); }
.dive {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center;
  padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line);
}
.dive.flip .media { order: -1; }
.dive:first-child { padding-top: clamp(44px, 6vw, 72px); }
.dive h3 { margin-top: 16px; font-size: clamp(1.85rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.07; }
.dive .copy > p { margin-top: 18px; font-size: 1.05rem; }
.facts { margin-top: 28px; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts li span:last-child { font-family: var(--mono); font-size: .84rem; color: var(--text); text-align: right; }
.media { position: relative; }
.media::before {
  content: ""; position: absolute; inset: 14% 10%; z-index: -1; filter: blur(60px); opacity: .45;
  background: radial-gradient(closest-side, var(--c, rgba(var(--accent-rgb), .8)), transparent);
}
.media .frame { max-width: 400px; margin: 0 auto; }
.media figcaption { margin-top: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); text-align: center; }
.pair { position: relative; }   /* two crops, the second overlapping the first */
.pair .frame { max-width: none; width: 76%; margin: 0; }
.pair .frame + .frame { position: relative; z-index: 1; margin: -22% 0 0 auto; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9), 0 40px 90px -40px rgba(0, 0, 0, .95); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: step; }
.steps li { padding: 28px; border-radius: var(--r-lg); }
.steps b { display: block; font-family: var(--mono); font-size: 2.4rem; font-weight: 500; line-height: 1; letter-spacing: -.05em; color: var(--accent-light); }
.steps h3 { margin-top: 18px; font-size: 1.18rem; }
.steps p { margin-top: 8px; font-size: .97rem; }

/* real-screens gallery */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; }
.gallery .phone { max-width: none; padding: 7px; border-radius: 34px; }
.gallery .phone img, .gallery .phone::after { border-radius: 28px; }
.gallery .phone::after { inset: 7px; }
.gallery figcaption { margin-top: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); text-align: center; }
.gallery figcaption strong { display: block; margin-bottom: 2px; font-family: var(--sans); font-size: .95rem; letter-spacing: -.01em; }

/* privacy band */
.band { padding: clamp(36px, 5vw, 56px); border-radius: 28px; text-align: center; }
.band h2 { margin-top: 14px; }
.band > p { max-width: 640px; margin: 16px auto 0; font-size: 1.08rem; }
.band .chips { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(239, 230, 212, .025); font-family: var(--mono); font-size: .8rem; color: var(--text); }
.band .more { display: inline-block; margin-top: 24px; font-weight: 600; }

/* specs */
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 48px); }
.spec-groups > .glass { padding: 22px 26px 8px; border-radius: var(--r-lg); }
.spec-groups h3 { padding-bottom: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.specs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-2); font-size: .95rem; }
.specs th, .specs td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 34%; padding-right: 20px; font-weight: 500; color: var(--sub); }
.specs td { color: var(--text); }
.specs td small { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); }

/* pricing */
.price-card {
  max-width: 560px; margin: 0 auto; padding: clamp(30px, 5vw, 44px); border-radius: 26px; text-align: center;
  border-color: rgba(var(--accent-rgb), .38);
  background: radial-gradient(90% 60% at 50% 0%, rgba(var(--accent-rgb), .16), transparent 70%), rgba(28, 24, 19, .62);
}
.price-card .top { display: flex; justify-content: center; align-items: center; gap: 12px; }
.price-card .name { font-size: 1rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--text); }
.price { margin-top: 18px; font-size: clamp(4rem, 9vw, 5.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.price sup { margin-right: 4px; font-size: .42em; vertical-align: .9em; letter-spacing: 0; color: var(--sub); }
.price-note { margin-top: 10px; font-size: .95rem; }
.checklist { display: grid; gap: 12px; margin: 30px 0 32px; list-style: none; text-align: left; }
.checklist li { position: relative; padding-left: 30px; font-size: .97rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23efe6d4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .5);
}
.price-card .btn { width: 100%; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.badges img { height: 44px; width: auto; }
.badges a + a img { height: 64px; margin: -10px -8px; } /* Google's badge art carries its own padding */
a[data-store-url] { opacity: .5; cursor: default; pointer-events: none; }
.store-soon { margin-top: 12px; font-size: .88rem; color: var(--sub); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 22px 48px 22px 0; list-style: none; cursor: pointer;
  font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px;
  background: var(--sub); transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--text); }
.faq .a { max-width: 740px; padding: 0 0 24px; font-size: 1rem; }

/* newsletter */
.letter { max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); border-radius: 26px; text-align: center; }
.letter h2 { margin-top: 14px; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.letter > p { margin-top: 12px; }
.letter form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.letter input {
  flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-3);
  background: var(--bg-well); color: var(--text); font: inherit; font-size: 1rem;
}
.letter input::placeholder, .form ::placeholder { color: var(--muted); opacity: 1; }
.letter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.letter .btn { flex: 0 0 auto; }
.letter .msg { margin-top: 14px; font-size: .95rem; }
.letter .fine, .fine { margin-top: 14px; font-size: .84rem; color: var(--muted); }
#nlSuccess { color: #8fd19e; }
#nlError { color: #f0a59a; }
[hidden] { display: none !important; }
.site-end { height: clamp(64px, 8vw, 104px); }

/* ── Sub-pages (contact, privacy) ────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 10vw, 120px); }
.page h1 { margin-top: 14px; font-size: clamp(2.3rem, 5vw, 3.2rem); letter-spacing: -.04em; }
.page .lead { margin-top: 14px; font-size: 1.08rem; }
.card { margin-top: 32px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 500; color: var(--sub); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--bg-well);
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--bg-well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23b3a48a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.form select option { background: var(--surface); color: var(--text); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { align-self: flex-start; }
.form .btn:disabled { opacity: .6; cursor: default; transform: none; }
.form .status { min-height: 1.2em; font-size: .9rem; color: #f0a59a; }
.success-state { display: none; padding: 24px 0; text-align: center; }
.success-state.visible { display: block; }
.success-state h2 { font-size: 1.3rem; }
.success-state p { margin-top: 8px; }
.success-state .btn { margin-top: 20px; }
.aside { margin-top: 28px; font-size: .96rem; }
.aside h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.aside p { margin-top: 8px; }
.policy .updated { margin-top: 8px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.policy h2 { margin: 40px 0 10px; font-size: 1.15rem; letter-spacing: -.015em; }
.policy p, .policy li { font-size: 1rem; }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 10px 0 12px 1.3rem; }
.policy li + li { margin-top: 6px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .gallery {
    grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scroll-padding: 0 var(--gutter);
  }
  .gallery li { scroll-snap-align: center; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .dive, .spec-groups { grid-template-columns: 1fr; }
  .dive.flip .media { order: 0; }
  .trio .side { max-width: 220px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { gap: 16px; }
  .trio .side { display: none; }
  .trio .main { max-width: 290px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-top: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px 24px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
  .specs th { width: 40%; }
  .cta-row .btn { flex: 1 1 100%; }
  .form .row { grid-template-columns: 1fr; }
  .letter .btn { flex: 1 1 100%; }
  .band { padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .reveal { opacity: 1 !important; translate: none !important; animation: none !important; }
  .nav { position: static; }
  .hero-sky, .glow, .media::before, .aura, canvas { display: none !important; }
}
