/* openset.fit home page — direction B, "Workout mode" (Joseph, 2026-09-29).
   Self-contained: the other pages (privacy, terms, guidelines, support, field
   notes) keep styles.css, so this file can change without touching them.
   The dark ink is the app's Start/Progress ground; cream is the feed's. */
:root {
  --ink: #101A1A;
  --ink-2: #182020;
  --ink-line: #2C3636;
  --cream: #FFF7ED;
  --cream-text: #F3EADB;
  --cream-muted: #B9B0A2;
  --muted: #5F5145;
  --hair: #E4D5C0;
  --orange: #F97316;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--cream-text); font: 17px/1.55 var(--sys); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.gutter { padding-inline: clamp(20px, 5vw, 64px); }
.inner { max-width: 1180px; margin: 0 auto; }

.display { font-weight: 900; text-transform: uppercase; line-height: .94; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0; }

/* ---- header ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-line); }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 21px; color: var(--cream); }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--orange); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; border-radius: 12px; padding: 12px 20px; border: 2px solid transparent; }
.btn-orange { background: var(--orange); color: var(--ink); border-color: var(--ink); }
.btn-orange:hover { filter: brightness(1.06); }
.top .btn-orange { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.store { background: var(--cream); color: var(--ink); line-height: 1.1; }
.store svg { width: 20px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .75; }
.store span:last-child { font-size: 19px; }
.store[aria-disabled="true"] { cursor: default; }

/* ---- hero ---- */
.hero { text-align: center; padding-block: clamp(48px, 9vw, 96px) 0; }
.hero h1 { font-size: clamp(50px, 9.4vw, 116px); color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.hero p { font-size: clamp(18px, 2.1vw, 22px); color: var(--cream-muted); max-width: 44ch; margin: 26px auto 32px; }

/* ---- the fan of real screens ---- */
/* The fan's height comes FROM the phone width, so the phones always run into
   the orange line and are cut off by it (they rise out of the cream band).
   A fixed height left a strip of empty ink under them whenever the phones
   came out shorter than the box (Joseph, 2026-09-29). A screenshot is ~2.16x
   as tall as it is wide; 1.7x shows about 80% of the middle phone. */
.fan {
  --pw: clamp(130px, 17vw, 220px);
  --pad: clamp(40px, 6vw, 64px);
  display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 2vw, 24px);
  padding-top: var(--pad); height: calc(var(--pad) + var(--pw) * 1.7); overflow: hidden;
}
.phone { flex: none; width: var(--pw); border: clamp(4px, .5vw, 6px) solid var(--ink-line); border-radius: clamp(20px, 2.6vw, 32px); overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.phone img { width: 100%; height: auto; }
.fan .phone:nth-child(1), .fan .phone:nth-child(5) { margin-top: clamp(50px, 7vw, 100px); opacity: .85; }
.fan .phone:nth-child(2), .fan .phone:nth-child(4) { margin-top: clamp(22px, 3vw, 44px); }
.fan .phone:nth-child(3) { border-color: var(--orange); }
@media (max-width: 700px) { .fan .phone:nth-child(1), .fan .phone:nth-child(5) { display: none; } }

/* ---- three points, on cream ---- */
.points { background: var(--cream); color: var(--ink); border-top: 4px solid var(--orange); }
.points .inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.points article { padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); border-right: 2px solid var(--hair); display: grid; gap: 10px; align-content: start; }
.points article:last-child { border-right: 0; }
.points h2 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin: 0; }
.points p { margin: 0; color: var(--muted); max-width: 36ch; }
@media (max-width: 820px) {
  .points .inner { grid-template-columns: minmax(0, 1fr); }
  .points article { border-right: 0; border-bottom: 2px solid var(--hair); padding-inline: 0; }
  .points article:last-child { border-bottom: 0; }
}

/* ---- get the app ---- */
.get { padding-block: clamp(56px, 8vw, 96px); scroll-margin-top: 70px; }
.get .inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.get h2 { font-size: clamp(44px, 6vw, 72px); color: var(--cream); }
.get p { color: var(--cream-muted); margin: 12px 0 0; max-width: 40ch; }
.get .actions { display: flex; align-items: center; gap: 20px; }
.qr { width: 116px; height: 116px; background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.qr img { width: 100%; height: 100%; }
.qr-note { font-size: 13px; color: var(--cream-muted); max-width: 14ch; line-height: 1.35; }
@media (hover: none) and (pointer: coarse) { .qr, .qr-note { display: none; } }

/* ---- contact ---- */
.contact { background: var(--ink-2); padding-block: clamp(44px, 6vw, 64px); scroll-margin-top: 70px; }
.contact .inner { display: grid; gap: 22px; }
.contact h2 { font-size: 15px; letter-spacing: .12em; color: var(--orange); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards a { display: grid; gap: 4px; text-decoration: none; border: 2px solid var(--ink-line); border-radius: 12px; padding: 20px; }
.cards a:hover { border-color: var(--orange); }
.cards b { font-size: 18px; color: var(--cream); }
.cards span { color: var(--cream-muted); font-size: 15px; }
.cards em { font-style: normal; font-weight: 700; color: var(--orange); margin-top: 8px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- footer ---- */
footer { border-top: 1px solid var(--ink-line); padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: #8e877a; }
footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
footer a { text-decoration: none; }
footer a:hover { color: var(--cream); }
