/* WristFlex — daylight dial: the app's own beige/green/gold identity */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #F4EFE4;           /* app scaffold beige */
  --panel: #EAE0C9;        /* raised beige card */
  --line: rgba(28, 38, 32, .14);
  --ink: #1C2620;          /* app ink */
  --ink-dim: #5C5442;      /* soft text */
  --green: #1B4D3E;        /* racing green — app accent */
  --green-deep: #234C3D;
  --gold: #A9793F;         /* deep gold on light */
  --gold-soft: #C7BC98;    /* brand gold (subscribe button) */
  --cream: #DDD0AC;        /* text on green */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", system-ui, sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--cream); }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- header ---------- */

.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand em { font-style: italic; color: var(--green); }

.site-nav a {
  color: var(--ink-dim);
  margin-left: clamp(1rem, 3vw, 2.25rem);
  font-size: .95rem;
  letter-spacing: .02em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); letter-spacing: .005em; }
h1 em, h2 em { font-style: italic; color: var(--green); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--ink-dim);
  max-width: 46ch;
}

p { max-width: var(--measure); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .04em;
  padding: .9rem 2rem;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 14px;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--green); color: var(--cream); }
.btn.solid { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn.solid:hover { background: var(--green-deep); }

/* ---------- phone frame (same anatomy as the App Store shots) ---------- */

.phone {
  background: #10160F;
  border-radius: 46px;
  padding: 9px;
  box-shadow: 0 30px 60px rgba(16, 22, 15, .28);
  display: inline-block;
  line-height: 0;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 38px;
  display: block;
}

.phone-holder { display: flex; justify-content: center; }
.phone-holder .phone { width: min(340px, 74vw); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 9vh, 6.5rem) 0 clamp(3rem, 8vh, 5.5rem);
}

.hero-copy .btn { margin-top: 2.2rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-dim); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .phone-holder { animation: rise .9s ease both; }
  .phone-holder { animation-delay: .15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

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

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section { padding: clamp(3rem, 8vh, 5.5rem) 0; }
.section > .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  margin: 0 0 .4rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.split.flip { grid-template-columns: .85fr 1.15fr; }
.split.flip .phone-holder { order: -1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 4vw, 2.8rem) clamp(2rem, 5vw, 4rem);
  margin-top: 2.2rem;
}

.feature h3 { margin-bottom: .3em; display: flex; align-items: center; gap: .55rem; }
.feature h3 svg { flex: none; color: var(--green); }
.feature p { color: var(--ink-dim); margin: 0; }
.feature .tag {
  font-size: .72rem; letter-spacing: .1em;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: .1rem .45rem;
  font-family: var(--sans);
  font-weight: 500;
}

/* premium band — green like the app's own CTA surfaces */
.premium {
  background: var(--green);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.05fr .6fr .85fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
.premium h2 { color: var(--cream); }
.premium h2 em { color: var(--gold-soft); }
.premium ul { margin: 1.1rem 0 0; padding: 0; list-style: none; color: var(--cream); }
.premium li { padding: .38rem 0; border-top: 1px solid rgba(221, 208, 172, .22); font-weight: 400; }
.premium li:first-child { border-top: 0; }
.premium .price {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-style: italic;
  color: var(--gold-soft);
  text-align: center;
}
.premium .price small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .9rem;
  color: var(--cream);
  opacity: .85;
  margin-top: .5rem;
}
.premium .btn { border-color: var(--gold-soft); color: #1C2620; background: var(--gold-soft); }
.premium .btn:hover { background: var(--cream); border-color: var(--cream); }
.premium .phone-holder .phone { width: min(230px, 60vw); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: .92rem;
}
.site-foot nav a { color: var(--ink-dim); margin-right: 1.6rem; }
.site-foot nav a:last-child { margin-right: 0; }
.site-foot nav a:hover { color: var(--ink); }

/* ---------- article pages (privacy, support) ---------- */

.article { padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(3rem, 8vh, 5rem); }
.article header { margin-bottom: 2.5rem; }
.article .updated { color: var(--gold); font-size: .95rem; font-family: var(--serif); font-style: italic; }
.article h2 {
  font-size: 1.6rem;
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.article h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.article p, .article li { color: var(--ink-dim); }
.article strong { color: var(--ink); font-weight: 500; }
.article ul { padding-left: 1.2rem; max-width: var(--measure); }
.article li { margin: .4rem 0; }
.article blockquote {
  margin: 1.4rem 0; padding: .9rem 1.2rem;
  border-left: 3px solid var(--gold-soft);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
  max-width: var(--measure);
  color: var(--ink-dim);
}

/* FAQ */
details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  max-width: var(--measure);
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-family: var(--sans); }
details[open] summary::after { content: "–"; }
details p { margin-top: .8rem; }

/* ---------- join page ---------- */

.join-hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) 0;
}
.join-hero .phone-holder .phone { width: min(300px, 68vw); }

.versus {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.3rem;
}

/* ---------- responsive ---------- */

@media (max-width: 800px) {
  .hero, .join-hero, .premium, .split, .split.flip { grid-template-columns: 1fr; }
  .phone-holder { order: -1; }
  .split.flip .phone-holder { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 1rem; }
  .premium .phone-holder { order: 0; }
}


/* ================= marketing polish ================= */

/* guilloché dial texture behind hero & premium */
.ornament {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.ornament svg { position: absolute; opacity: .5; }
.hero, .premium, .join-hero { position: relative; }
.hero > *, .premium > *, .join-hero > * { position: relative; z-index: 1; }
.hero > .ornament, .premium > .ornament, .join-hero > .ornament { position: absolute; z-index: 0; }

/* phones: tilted, layered, showcase-like */
.showcase { position: relative; display: flex; justify-content: center; align-items: center; }
.showcase .ring {
  position: absolute; width: 125%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(169, 121, 63, .35);
  box-shadow: inset 0 0 0 22px rgba(169, 121, 63, .07), inset 0 0 0 46px rgba(27, 77, 62, .05);
}
.showcase .phone { position: relative; }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(4deg); }
.showcase .phone { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.showcase:hover .phone.tilt-l { transform: rotate(-1.5deg) translateY(-6px); }
.showcase:hover .phone.tilt-r { transform: rotate(1.5deg) translateY(-6px); }

.phone {
  background: linear-gradient(160deg, #1d2620, #0d130e 60%);
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 2px 0 rgba(255,255,255,.06) inset,
    0 24px 40px rgba(16, 22, 15, .22),
    0 60px 110px rgba(16, 22, 15, .30);
}

/* hero duo: two overlapping phones */
.duo { position: relative; height: clamp(430px, 52vw, 620px); }
.duo .phone { position: absolute; width: min(280px, 56vw); }
.duo .phone:first-child { left: 4%; top: 6%; z-index: 1; transform: rotate(-6deg); }
.duo .phone:last-child { right: 2%; top: 0; z-index: 2; transform: rotate(4deg); }
.duo .phone { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.duo:hover .phone:first-child { transform: rotate(-7deg) translate(-6px, -4px); }
.duo:hover .phone:last-child { transform: rotate(5deg) translate(6px, -8px); }

/* kicker: gold rule flourish */
.section > .kicker, .premium-kicker {
  display: flex; align-items: center; gap: .9rem;
}
.section > .kicker::before, .section > .kicker::after {
  content: ""; height: 1px; width: 44px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section > .kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* feature cards instead of bare text */
.feature {
  background: rgba(234, 224, 201, .55);
  border: 1px solid rgba(169, 121, 63, .18);
  border-radius: 16px;
  padding: 1.35rem 1.45rem 1.3rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 121, 63, .45);
  box-shadow: 0 18px 40px rgba(28, 38, 32, .10);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* hero headline flourish */
.hero-copy h1 { text-wrap: balance; }
.hero-eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .26em; color: var(--gold);
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem;
}
.hero-eyebrow::before { content: ""; height: 1px; width: 40px; background: var(--gold); opacity: .6; }

/* store badge-ish button row */
.cta-row { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.cta-row .btn { margin: 0; }
.chip {
  font-size: .85rem; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem;
  background: rgba(234, 224, 201, .5);
}

/* premium band richer */
.premium { overflow: hidden; }
.premium::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(199, 188, 152, .25);
  box-shadow: inset 0 0 0 34px rgba(199, 188, 152, .06), inset 0 0 0 70px rgba(199, 188, 152, .04);
  z-index: 0;
}
.premium-kicker {
  font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.15rem;
  margin: 0 0 .3rem;
}

@media (max-width: 800px) {
  .duo { height: clamp(420px, 120vw, 560px); }
  .duo .phone { width: min(230px, 52vw); }
}

/* App Store "coming soon" badge (real download link swaps in at launch) */
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1.4rem; border-radius: 14px;
  font-family: var(--sans); line-height: 1.1;
}
.store-badge svg { color: var(--gold-soft); }
.store-badge span { display: flex; flex-direction: column; text-align: left; }
.store-badge small { font-size: .68rem; letter-spacing: .04em; opacity: .8; text-transform: uppercase; }
.store-badge span { font-size: 1.15rem; font-weight: 500; }
.premium .store-badge { background: var(--gold-soft); color: #1C2620; }
.premium .store-badge svg { color: #1C2620; }
