/* FiveWise, 5-wise.com. Colors are the app's own (Theme.swift): lane blue, ball orange. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --ink: #141a26;
  --muted: #556074;
  --rule: #d1d8e3;
  --lane: #1f4e9c;
  --lane-deep: #173d7c;
  --lane-soft: #dde6f6;
  --ball: #f39a3d;
  --ball-ink: #2a1503;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lane); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header sits on the lane-blue hero */
.site-header { background: var(--lane); color: #fff; padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav a { color: #dbe5f7; text-decoration: none; margin-left: 1.4rem; font-weight: 700; font-size: 1rem; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }
.site-header a:focus-visible { outline-color: var(--ball); }

/* Hero: the key-lane arc from the app icon frames the phone */
.hero { background: var(--lane); color: #fff; padding: 2.5rem 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: end; }
.hero-copy { padding-bottom: 4.5rem; align-self: center; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 0.98; margin: 0 0 1.25rem; max-width: 17ch; }
.hero .lede { font-size: 1.2rem; color: #dbe5f7; max-width: 38ch; margin: 0 0 1.75rem; }
.soon { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ball); color: var(--ball-ink); font-weight: 700; padding: 0.6rem 1.1rem; border-radius: 999px; }
.soon svg { width: 18px; height: 18px; }
.hero-phone { position: relative; justify-self: center; width: min(100%, 22rem); padding: 2.75rem 2.75rem 0; }
.hero-phone::before {
  content: ""; position: absolute; inset: 0 0 -2px 0;
  border: 3px solid rgba(255, 255, 255, 0.28); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.hero-phone .phone { position: relative; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: 0; }
.hero-phone .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero-phone .phone { max-height: 34rem; overflow: hidden; }

/* Phone frame around a screenshot */
.phone { background: #0d1118; border: 9px solid #0d1118; border-radius: 46px; box-shadow: 0 30px 60px -35px rgba(20, 26, 38, 0.6); }
.phone img { border-radius: 37px; width: 100%; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { max-width: 44rem; margin: 0 0 2.5rem; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.02; margin: 0 0 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

/* Steps: a real sequence, so they are numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; padding-top: 0.5rem; }
.step .phone { width: min(100%, 16.5rem); justify-self: center; }
.step:nth-child(even) .step-copy { order: 2; }
.step-copy { max-width: 30rem; }
.step-copy h3 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; margin: 0 0 0.75rem; display: flex; align-items: baseline; gap: 0.75rem; }
.step-copy h3::before {
  counter-increment: step; content: counter(step);
  flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ball); color: var(--ball-ink); font-size: 1.35rem; transform: translateY(-0.15rem);
}
.step-copy p { color: var(--muted); margin: 0 0 0.8rem; }
.step-copy p:last-child { margin-bottom: 0; }

/* Season stats */
.season { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.season .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.pro-tag { display: inline-block; font-weight: 700; font-size: 0.95rem; color: var(--lane); background: var(--lane-soft); padding: 0.2rem 0.7rem; border-radius: 999px; margin: 0 0 1rem; }
.season ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.season li { padding: 0.85rem 0 0.85rem 1.1rem; border-top: 1px solid var(--rule); position: relative; color: var(--muted); }
.season li strong { color: var(--ink); }
.season li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ball); }
.season-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.season-phones .phone:last-child { margin-top: 3rem; }

/* Uniforms */
.uniforms .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.uniforms .phone { width: min(100%, 14rem); justify-self: center; }
.uniforms p { color: var(--muted); max-width: 30rem; }

/* Pricing */
.pricing { padding-top: 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 1.75rem; }
.plan.pro { border: 2px solid var(--lane); }
.plan h3 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; margin: 0; }
.plan .price { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--lane); margin: 0.15rem 0 1rem; }
.plan p { margin: 0; color: var(--muted); }
.offline { display: flex; align-items: center; gap: 0.85rem; margin: 1.5rem 0 0; color: var(--ink); font-weight: 700; }
.offline svg { flex: none; width: 24px; height: 24px; color: var(--lane); }

/* Support */
.support { background: var(--lane-soft); }
.support .wrap { max-width: 70rem; }
.support p { max-width: 60ch; margin: 0 0 0.8rem; }
.support .email { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--lane); text-decoration-color: var(--ball); text-decoration-thickness: 3px; }
.support .email:hover { color: var(--ink); }
.support dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; }
.support dt { font-weight: 700; }
.support dd { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer p { margin: 0; }
.site-footer nav a { margin-right: 1.25rem; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }

/* Policy page */
.policy { padding: 3rem 0 4.5rem; }
.policy article { max-width: 42rem; }
.policy h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1; margin: 0 0 0.5rem; }
.policy .effective { color: var(--muted); margin: 0 0 2rem; }
.policy h2 { font-size: 1.7rem; margin: 2.25rem 0 0.6rem; }
.policy p { line-height: 1.65; }
.policy .summary { background: var(--surface); border-left: 4px solid var(--lane); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.policy .summary p { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* One orchestrated moment: the hero phone rises into the lane on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-phone .phone { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
  @keyframes rise { from { transform: translateY(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
}

@media (max-width: 900px) {
  .hero .wrap, .step, .season .wrap, .uniforms .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { padding-bottom: 0; }
  .hero-phone { width: min(100%, 19rem); }
  .step:nth-child(even) .step-copy { order: 0; }
  .season-phones .phone:last-child { margin-top: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 1.1rem; }
  section { padding: 3.25rem 0; }
  .plans { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 0.9rem; }
  .brand { font-size: 1.4rem; }
  .phone { border-width: 6px; border-radius: 34px; }
  .phone img { border-radius: 28px; }
  .support dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .support dd { margin-bottom: 0.6rem; }
}
