/* Vocatim marketing + docs site. Static, dependency-free (system fonts, inline
   SVG). Brand tokens ported from the app (sage/cream). Light theme by design. */
:root {
  --bg: #f5f1e8;
  --bg-2: #eef3ee;
  --card: #fffdf8;
  --border: #e6ded0;
  --border-strong: #d8cfbd;
  --text: #1d332a;
  --text-2: #53645d;
  --text-3: #8a978f;
  --forest: #124e3b;
  --forest-2: #1c6048;
  --sage: #7fa890;
  --sage-bg: #deece5;
  --sage-ink: #1f5d47;
  --ink-on: #fffdf8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 51, 42, 0.04), 0 12px 32px rgba(29, 51, 42, 0.06);
  --maxw: 1060px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, var(--bg-2), var(--bg)) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-head__row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 9px; }
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.lang-select { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--forest); background: var(--card); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 10px; cursor: pointer; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-radius: 12px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; transition: transform .06s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: var(--ink-on); }
.btn--primary:hover { background: var(--forest-2); }
.btn--ghost { background: var(--card); color: var(--forest); border-color: var(--border-strong); }
.appstore { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; border-radius: 13px; padding: 10px 18px; font-weight: 600; }
.appstore:hover { text-decoration: none; opacity: .92; }
.appstore small { display: block; font-size: 0.66rem; opacity: .8; line-height: 1; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .04em; }
.appstore b { font-size: 1.12rem; line-height: 1.1; }
.appstore svg { width: 24px; height: 24px; }

/* ---- hero ---- */
.hero { padding: 72px 0 40px; }
.hero__mark { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; max-width: 15ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-2); max-width: 46ch; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { color: var(--text-3); font-size: 0.9rem; margin-top: 14px; }

/* ---- section ---- */
section { padding: 52px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 0.76rem; font-weight: 800; color: var(--sage-ink); margin: 0 0 10px; }
h2.sec { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.015em; margin: 0 0 8px; text-wrap: balance; }
.sec-sub { color: var(--text-2); max-width: 52ch; margin: 0 0 28px; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--sage-bg); color: var(--sage-ink); margin-bottom: 14px; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-2); font-size: 0.96rem; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__n { width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: var(--ink-on); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---- privacy band ---- */
.band { background: linear-gradient(180deg, var(--sage-bg), #e9f1ec); border: 1px solid var(--border); border-radius: 20px; padding: 40px; text-align: center; }
.band h2 { margin: 0 0 10px; }
.band p { max-width: 56ch; margin: 0 auto 18px; color: var(--sage-ink); }

/* ---- showcase / screenshots ---- */
.showcase { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.shot { margin: 0; text-align: center; }
.shot__frame { border-radius: 26px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: var(--card); line-height: 0; cursor: zoom-in; transition: transform .14s ease, box-shadow .14s ease; }
.shot__frame:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(29,51,42,.05), 0 18px 44px rgba(29,51,42,.15); }
.shot__frame:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.shot__frame img { width: 100%; height: auto; }

/* ---- lightbox (click a screenshot to enlarge) ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 4vmin; background: rgba(15, 26, 21, 0.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 26px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55); }
.lightbox__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

/* ---- demo video (phone-framed, at the top of the showcase) ---- */
.demo-video { margin: 0 0 40px; text-align: center; }
.demo-video__frame {
  display: inline-block;
  position: relative;
  padding: 8px;
  background: #14231d;
  border-radius: 40px;
  box-shadow: var(--shadow);
  line-height: 0;
}
.demo-video__frame video {
  width: 280px;
  max-width: 78vw;
  height: auto;
  border-radius: 32px;
  display: block;
}
/* While the clip loads, sweep a shimmer over the poster so it never reads as a
   frozen still — it signals "about to play". setupDemoVideo drops .is-loading. */
.demo-video__frame.is-loading::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 32px;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  background-size: 220% 100%;
  animation: demoShimmer 1.4s linear infinite;
}
@keyframes demoShimmer {
  0% { background-position: 160% 0; }
  100% { background-position: -160% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-video__frame.is-loading::after { animation: none; }
}
/* Tap-to-unmute: the clip autoplays muted (browser policy), this turns sound on. */
.demo-video__sound {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(20, 35, 29, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.demo-video__sound:hover { background: rgba(20, 35, 29, 0.82); transform: scale(1.06); }
.demo-video__sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-video__sound svg { width: 20px; height: 20px; display: block; }
.demo-video__sound .ico--on { display: none; }
.demo-video__sound[aria-pressed="true"] .ico--on { display: block; }
.demo-video__sound[aria-pressed="true"] .ico--off { display: none; }

/* ---- wide Mac/iPad screenshot below the phone row ---- */
.shot-mac { margin: 44px 0 0; text-align: center; }
.shot-mac .shot__frame--wide { display: inline-block; max-width: min(660px, 100%); border-radius: 16px; }
.shot-mac .shot__frame--wide img { width: 100%; height: auto; display: block; }
.shot-mac figcaption { margin-top: 14px; color: var(--text-2); font-size: 0.94rem; font-weight: 600; }
.shot figcaption { margin-top: 12px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 820px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; }
  .shot { scroll-snap-align: center; }
  .shot figcaption { font-size: 0.95rem; }
}

/* ---- price ---- */
.price { text-align: center; }
.price__amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price__cap { color: var(--text-2); }

/* ---- docs (privacy/support) ---- */
.doc { padding: 48px 0 24px; max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--text-3); font-size: 0.9rem; margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc a { font-weight: 600; }
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--sage); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }

/* ---- FAQ ---- */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sage-ink); font-weight: 800; font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0 48px; color: var(--text-3); }
.site-foot__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-foot a { color: var(--text-2); font-weight: 600; }
.site-foot__spacer { margin-left: auto; }

@media (max-width: 820px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .nav a[data-nav-hideable] { display: none; }
  .hero { padding: 48px 0 24px; }
}

/* ---- Mac-as-engine diagram -------------------------------------------------
   Decorative round-trip: phone → (iCloud above / Wi-Fi across) → Mac →
   transcript back. Line weights mirror the story: the routes are quiet, the
   returning transcript is the loudest stroke on the drawing. */
.mac-diagram { margin: 10px auto 34px; max-width: 640px; }
.mac-diagram svg { display: block; width: 100%; height: auto; }
.md-body { fill: var(--card); stroke: var(--text); stroke-width: 2.6; }
.md-shade { fill: var(--border-strong); }
.md-wave rect { fill: var(--sage); }
.md-wave rect:nth-child(3) { fill: var(--forest); }
.md-dot--a { fill: var(--forest); } .md-dot--b { fill: var(--sage); }
.md-line { fill: none; stroke-width: 5; stroke-linecap: round; }
.md-line--a { stroke: var(--sage-bg); } .md-line--b { stroke: var(--sage-bg); }
.md-cloud path { fill: none; stroke: var(--text-3); stroke-width: 0.55; }
.md-route { fill: none; stroke-linecap: round; }
.md-route--cloud { stroke: var(--text-3); stroke-width: 2.4; stroke-dasharray: 2 7; }
.md-route--lan { stroke: var(--sage); stroke-width: 3; stroke-dasharray: 2 8; }
.md-wifi path { fill: none; stroke: var(--sage-ink); stroke-width: 2.4; stroke-linecap: round; }
.md-wifi circle { fill: var(--sage-ink); }
.md-route--back { stroke: var(--forest); stroke-width: 3.4; }
.md-chevron { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.md-chevron--muted { stroke: var(--text-3); }
.md-chevron--lan { stroke: var(--sage); stroke-width: 3; }
.md-chevron--back { stroke: var(--forest); stroke-width: 3.4; }
.md-badge rect { fill: var(--card); stroke: var(--forest); stroke-width: 2.4; }
.md-badge-line { fill: none; stroke: var(--forest-2); stroke-width: 3; stroke-linecap: round; }
