/* Gemel marketing site.
   Site chrome uses theme-aware tokens mirroring GemelDesign's Palette.swift.
   The app screens embedded in device frames carry their OWN fixed light palette
   (see "App palette" below) — a phone screenshot does not invert when the
   reader's site theme changes, so those tokens are deliberately not theme-aware. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* ---------------------------------------------------------------- Site tokens */

:root {
  --paper: #f2f2f0;
  --paper-2: #ededea;
  --ink: #17171c;
  --ink-72: rgba(23, 23, 28, 0.72);
  --ink-60: rgba(23, 23, 28, 0.6);
  --ink-45: rgba(23, 23, 28, 0.45);
  --ink-30: rgba(23, 23, 28, 0.3);
  --ink-12: rgba(23, 23, 28, 0.12);
  --ink-08: rgba(23, 23, 28, 0.08);
  --ink-05: rgba(23, 23, 28, 0.05);
  --card: #ffffff;
  --violet: #6a4bd8;
  --violet-soft: #eae4fb;
  --green: #128e5f;
  --green-soft: #dcefe6;
  --shadow: 0 30px 70px rgba(23, 23, 28, 0.13);

  --r-lg: 22px;
  --r-md: 18px;
  --r-sm: 14px;
  --wrap: 1120px;
  --wrap-doc: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141419;
    --paper-2: #101014;
    --ink: #f2f2f0;
    --ink-72: rgba(242, 242, 240, 0.85);
    --ink-60: rgba(242, 242, 240, 0.78);
    --ink-45: rgba(242, 242, 240, 0.63);
    --ink-30: rgba(242, 242, 240, 0.34);
    --ink-12: rgba(242, 242, 240, 0.14);
    --ink-08: rgba(242, 242, 240, 0.1);
    --ink-05: rgba(242, 242, 240, 0.06);
    --card: #1e1e24;
    --violet: #9e86ff;
    --violet-soft: rgba(158, 134, 255, 0.16);
    --green: #45c48d;
    --green-soft: rgba(69, 196, 141, 0.14);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

/* ------------------------------------------------------------------ Base */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-doc { max-width: var(--wrap-doc); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* ------------------------------------------------------------------ Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

/* iOS-style squircle tile for the real app icon, light/dark swapped. */
.icon-tile { width: 28px; height: 28px; border-radius: 23%; flex: none; display: block; }
.icon-tile.dark { display: none; }
@media (prefers-color-scheme: dark) {
  .icon-tile.light { display: none; }
  .icon-tile.dark { display: block; }
}

nav.links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
nav.links a { color: var(--ink-60); }
nav.links a:hover { color: var(--ink); text-decoration: none; }
nav.links a.here { color: var(--ink); }

@media (max-width: 620px) {
  nav.links { gap: 18px; font-size: 13.5px; }
  .wrap, .wrap-doc { padding: 0 20px; }
}

/* --------------------------------------------------- Coming soon (not a badge)

   Deliberately NOT Apple's App Store badge: the Developer Artwork License
   grants the Download and Pre-order badges only for apps already available
   for download or pre-order. Gemel is neither yet, so this is plain text. */

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--ink-08);
  color: var(--ink-72);
  padding: 9px 17px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.coming-soon .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet);
  flex: none;
  box-shadow: 0 0 0 0 var(--violet);
  animation: pip 2.6s ease-out infinite;
}

@keyframes pip {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--violet) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon .pip { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------- Hero */

.hero { padding: 64px 0 8px; text-align: center; }

.hero h1 {
  font-size: clamp(40px, 7.2vw, 74px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 20px 0 0;
  text-wrap: balance;
}

.hero h1 .tint-v { color: var(--violet); }
.hero h1 .tint-g { color: var(--green); }

.hero p.sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-60);
  max-width: 540px;
  margin: 20px auto 28px;
  text-wrap: pretty;
}

/* Staggered trio of device frames. Upright, never tilted — these read as
   screens, and a rotated phone reads as decoration. */
.hero-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 30px);
  padding: 34px 0 0;
  overflow: hidden;
}

.hero-stage .device-holder:nth-child(2) { margin-bottom: 42px; }
.hero-stage .device-holder:nth-child(1),
.hero-stage .device-holder:nth-child(3) { opacity: 0.96; }

@media (max-width: 900px) {
  .hero-stage .device-holder:nth-child(1),
  .hero-stage .device-holder:nth-child(3) { display: none; }
  .hero-stage .device-holder:nth-child(2) { margin-bottom: 0; }
}

/* --------------------------------------------------------- Device frames */

.device-holder {
  width: calc(393px * var(--s, 0.6));
  height: calc(852px * var(--s, 0.6));
  flex: none;
  position: relative;
}

.device {
  width: 393px;
  height: 852px;
  transform: scale(var(--s, 0.6));
  transform-origin: top left;
  border-radius: 44px;
  box-shadow: var(--shadow);

  /* App palette — fixed light, matching the app's default appearance.
     Copied verbatim from the design project's :root so the embedded screens
     render byte-identically to the handoff documents. */
  --ink: #17171C;
  --paper: #F2F2F0;
  --chip: rgba(242,242,240,.92);
  --card: #fff;
  --card-hi: #FAFAF9;
  --card-lo: #EDEDEA;
  --vio: #6A4BD8;
  --vio-deep: #33208F;
  --grn: #128E5F;
  --grn-deep: #04512E;
  --vio-line: #3A1AA8;
  --vio-line-soft: rgba(58,26,168,.5);
  --vio-line-off: rgba(58,26,168,.32);
  --grn-line: #0A6E3C;
  --grn-line-soft: rgba(10,110,60,.5);
  --grn-line-off: rgba(10,110,60,.34);
  --vio-track: #EAE4FB;
  --vio-track-2: #EDEBF7;
  --grn-track: #DCEFE6;
  --grn-track-2: #E4EFE8;
  --danger: #B22A2A;
  --glass-btn: rgba(255,255,255,.6);
  --glass-btn-line: rgba(255,255,255,.9);
  --ink-6: rgba(23,23,28,.6);
  --ink-5: rgba(23,23,28,.5);
  --ink-62: rgba(23,23,28,.62);
  --ink-55: rgba(23,23,28,.55);
  --ink-15: rgba(23,23,28,.15);
  --ink-42: rgba(23,23,28,.42);
  --ink-16: rgba(23,23,28,.16);
  --ink-10: rgba(23,23,28,.10);
  --ink-58: rgba(23,23,28,.58);
  --ink-7: rgba(23,23,28,.07);
  --ink-2: rgba(23,23,28,.2);
  --ink-45: rgba(23,23,28,.45);
  --ink-14: rgba(23,23,28,.14);
  --ink-8: rgba(23,23,28,.08);
  --ink-28: rgba(23,23,28,.28);
  --ink-22: rgba(23,23,28,.22);
  --ink-32: rgba(23,23,28,.32);
  --ink-26: rgba(23,23,28,.26);
  --ink-1: rgba(23,23,28,.1);
  --ink-18: rgba(23,23,28,.18);
  --ink-3: rgba(23,23,28,.3);
  --ink-38: rgba(23,23,28,.38);
  --ink-9: rgba(23,23,28,.09);
  --ink-24: rgba(23,23,28,.24);
  --ink-13: rgba(23,23,28,.13);
  --ink-48: rgba(23,23,28,.48);
  --ink-34: rgba(23,23,28,.34);
  --ink-72: rgba(23,23,28,.72);
  --ink-20: rgba(23,23,28,.20);
  --ink-4: rgba(23,23,28,.4);
  --ink-46: rgba(23,23,28,.46);
  --ink-05: rgba(23,23,28,.05);
  --ink-055: rgba(23,23,28,.055);
  --ink-06: rgba(23,23,28,.06);
  --ink-09: rgba(23,23,28,.09);
  --vio-5: rgba(106,75,216,.5);
  --vio-8: rgba(106,75,216,.08);
  --vio-1: rgba(106,75,216,.1);
  --vio-18: rgba(106,75,216,.18);
  --vio-6: rgba(106,75,216,.6);
  --vio-55: rgba(106,75,216,.55);
  --vio-3: rgba(106,75,216,.3);
  --grn-5: rgba(18,142,95,.5);
  --grn-8: rgba(18,142,95,.08);
  --grn-72: rgba(18,142,95,.72);
  --grn-6: rgba(18,142,95,.6);
  --grn-3: rgba(18,142,95,.3);
  --glass-7: rgba(255,255,255,.7);
  --glass-74: rgba(255,255,255,.74);
  --glass-96: rgba(255,255,255,.96);
  --glass-9: rgba(255,255,255,.9);
  --glass-8: rgba(255,255,255,.8);
  --glass-85: rgba(255,255,255,.85);
  --glass-6: rgba(255,255,255,.6);
  --wall-a: #DCD9D2;
  --wall-b: #D2CEC6;
  --wall-ink: #3B3B40;
  --wall-slot: rgba(255,255,255,.42);
  --lock-ink: #17171C;
  --lock-ink-9: rgba(23,23,28,.9);
  --lock-ink-82: rgba(23,23,28,.82);
  --lock-ink-7: rgba(23,23,28,.7);
  --lock-ink-55: rgba(23,23,28,.55);
  --lock-ink-35: rgba(23,23,28,.4);
  --lock-ink-3: rgba(23,23,28,.34);
  --lock-glass-28: rgba(255,255,255,.6);
  --lock-glass-22: rgba(255,255,255,.55);
  --lock-glass-18: rgba(255,255,255,.5);
  --lock-glass-14: rgba(255,255,255,.46);
  --lock-ink-inv: #F2F2F0;
  --tile: linear-gradient(150deg,rgba(255,255,255,.9),rgba(255,255,255,.62));
  --tile-edge: rgba(255,255,255,.85);
  --tile-hi: rgba(255,255,255,.8);
}

/* ------------------------------------------------------- Feature sections */

.feature-row { padding: clamp(48px, 8vw, 96px) 0; }

.feature-row .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.feature-row.flip .wrap { grid-template-columns: auto 1fr; }
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .device-holder { order: 1; }

.feature-copy h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 14px 0 0;
  text-wrap: balance;
}

.feature-copy p {
  font-size: 16.5px;
  color: var(--ink-60);
  margin: 16px 0 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.feature-copy ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
  max-width: 46ch;
}

.feature-copy li {
  font-size: 15px;
  color: var(--ink-60);
  padding-left: 26px;
  position: relative;
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--violet);
}
.feature-copy li:nth-child(even)::before { background: var(--green); }

/* The Health heart, used as an inline icon beside the sentence it belongs to —
   not assembled into a lockup, which would be making our own version of Apple's
   "Works with Apple Health" badge (their guidelines forbid that). */
.feature-copy li.health { padding-left: 27px; }
.feature-copy li.health::before { display: none; }

.feature-copy li.health img {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .feature-row .wrap,
  .feature-row.flip .wrap { grid-template-columns: 1fr; justify-items: center; }
  /* Copy leads on a narrow screen so the reader knows what the screen below is. */
  .feature-copy { text-align: center; order: 0 !important; }
  .feature-copy p, .feature-copy ul { margin-left: auto; margin-right: auto; }
  .feature-copy ul { text-align: left; }
  .feature-row .device-holder,
  .feature-row.flip .device-holder { order: 1 !important; margin-top: 8px; }
}

/* Alternating ground so the rows read as distinct bands. */
.band { background: var(--paper-2); }

/* ----------------------------------------------------------- Dark section */

.dark-band {
  background: #17171c;
  color: #f2f2f0;
  padding: clamp(56px, 9vw, 104px) 0;
  text-align: center;
}

.dark-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.dark-band .eyebrow { color: rgba(242, 242, 240, 0.5); }

.dark-band p.lede {
  font-size: 17px;
  color: rgba(242, 242, 240, 0.72);
  max-width: 620px;
  margin: 18px auto 0;
  text-wrap: pretty;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 42px;
  text-align: left;
}

.privacy-card {
  background: rgba(242, 242, 240, 0.05);
  border: 1px solid rgba(242, 242, 240, 0.1);
  border-radius: var(--r-md);
  padding: 22px;
}

.privacy-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 8px;
}

.privacy-card p {
  font-size: 14px;
  color: rgba(242, 242, 240, 0.66);
  margin: 0;
}

.dark-band a.more { color: #c4aeff; font-size: 15px; }

/* --------------------------------------------------------------- Pricing */

.price-hero { padding: 56px 0 8px; text-align: center; }

.price-hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.033em;
  line-height: 1.05;
  margin: 18px 0 0;
  text-wrap: balance;
}

.price-hero p.sub {
  font-size: 17.5px;
  color: var(--ink-60);
  max-width: 560px;
  margin: 18px auto 0;
  text-wrap: pretty;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 44px auto 0;
  align-items: start;
}

.plan {
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  text-align: left;
  position: relative;
}

.plan.featured {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet);
}

.plan .tag {
  position: absolute;
  top: -11px; left: 26px;
  background: var(--violet);
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}

.plan h2 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }

.plan .amount {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 16px 0 0;
  font-variant-numeric: tabular-nums;
}

.plan .amount .per {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-45);
  margin-left: 4px;
}

.plan .equiv {
  font-family: "Space Mono", monospace;
  font-size: 12.5px;
  color: var(--ink-45);
  margin-top: 10px;
}

.plan .trial {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-08);
  font-size: 14.5px;
  color: var(--ink-60);
}

/* Two-column "what you pay for / what's free" */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.split-card {
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  padding: 28px;
}

.split-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.split-card .note {
  font-family: "Space Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 16px;
}

.split-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }

.split-card li {
  font-size: 15px;
  color: var(--ink-60);
  padding-left: 27px;
  position: relative;
  text-wrap: pretty;
}

.split-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.split-card.paid li::before { border-color: var(--violet); }

/* FAQ */

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 2px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-sm);
  padding: 18px 22px;
}

.faq summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: "Space Mono", monospace;
  font-size: 19px;
  color: var(--ink-45);
  flex: none;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  font-size: 15px;
  color: var(--ink-60);
  margin: 12px 0 0;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- Sections */

.section { padding: clamp(48px, 8vw, 92px) 0; }
.section-head { text-align: center; margin-bottom: 40px; }

.section-head h2 {
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-60);
  max-width: 560px;
  margin: 16px auto 0;
  text-wrap: pretty;
}

/* Closing call to action */

.closer { padding: clamp(56px, 9vw, 96px) 0; text-align: center; }

.closer h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.033em;
  margin: 16px 0 20px;
  text-wrap: balance;
}

.closer p { font-size: 17px; color: var(--ink-60); max-width: 520px; margin: 0 auto 28px; }

/* ---------------------------------------------------------- Legal / docs */

main.doc { padding: 44px 0 80px; }

main.doc h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
}

main.doc .updated {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-45);
  margin-bottom: 36px;
  display: block;
}

main.doc h2 { font-size: 19px; font-weight: 600; margin: 38px 0 10px; letter-spacing: -0.015em; }
main.doc p, main.doc li { font-size: 15.5px; color: var(--ink-60); line-height: 1.68; }
main.doc strong { color: var(--ink); font-weight: 600; }
main.doc ul { padding-left: 20px; }

/* ---------------------------------------------------------------- Footer */

footer.site {
  padding: 34px 0 60px;
  border-top: 1px solid var(--ink-08);
  margin-top: 20px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-45);
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--ink-45); }
footer.site a:hover { color: var(--ink); }

.trademark {
  font-size: 11.5px;
  color: var(--ink-30);
  margin-top: 16px;
  max-width: 60ch;
  line-height: 1.6;
}
