/* CaddieWatch: one stylesheet, no web fonts, no scripts.
   Colours come from the app's DesignSystem palette (Palette.standard, light). Bump the file name
   (site-v3.css) when this changes: it is cached for a year. */

:root {
  --accent: #1F7A4D;
  --deep: #1E3B2F;
  --background: #F4F6F3;
  --surface: #FFFFFF;
  --text: #141A16;
  --text-2: #3E4943;
  --text-3: #4D5852;
  --line: #DCE3DE;
  --mint: #E3EFE7;
  --highlight-soft: #FBE7D8;
  --highlight-text: #B4561A;
  --on-deep: #FFFFFF;
  --on-deep-2: #CFE0D6;
  --on-deep-3: #A9C3B4;
  --frame: #111614;
  --frame-watch: #2A2F2C;

  --s-xs: 4px; --s-s: 8px; --s-m: 12px; --s-l: 16px; --s-xl: 24px; --s-xxl: 32px;
  --r-s: 8px; --r-m: 16px; --r-l: 24px;

  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --page: 1200px;
  --gutter: 24px;
  --nav-h: 92px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans);
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { font-family: var(--rounded); line-height: 1.08; margin: 0; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--deep); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--on-deep); }

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

.skip {
  position: absolute; left: var(--s-l); top: -100px; z-index: 100;
  padding: var(--s-m) var(--s-l); border-radius: var(--r-s);
  background: var(--deep); color: var(--on-deep); font-weight: 700;
}
.skip:focus { top: var(--s-l); color: var(--on-deep); }

.container { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s-xl);
  min-height: 44px; padding: 20px 28px; border-radius: 999px;
  background: var(--deep); color: var(--on-deep); text-decoration: none;
  font: 800 1.3rem/1.2 var(--rounded);
  box-shadow: 0 6px 20px rgba(30, 59, 47, .28);
}
.button:hover { color: var(--on-deep); background: #16301F; }
.button--small { gap: var(--s-s); padding: 12px 20px; font-size: .95rem; box-shadow: none; }
.button--accent { background: var(--accent); justify-content: center; font: 700 1rem/1.2 var(--sans); padding: 16px 24px; box-shadow: none; }
.button--accent:hover { background: var(--deep); }
.button svg { flex: none; }

/* Navigation: a glass bar that stays on top while you scroll */
.nav-wrap { position: sticky; top: 0; z-index: 20; height: 0; }
.nav-outer { padding-top: 20px; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-m);
  padding: var(--s-s) var(--s-s) var(--s-s) 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 28px rgba(20, 40, 30, .14);
}
.brand { display: flex; align-items: center; gap: var(--s-m); color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand span { font: 900 1.3rem/1 var(--rounded); letter-spacing: -.01em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-xs); margin: 0; padding: 0; list-style: none; }
.nav-links a:not(.button) { display: block; padding: 12px 16px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.button):hover { color: var(--accent); }

/* Hero: the course picture fading into the page, as on the app's home screen */
.hero { position: relative; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(244, 246, 243, 0) 0%, rgba(244, 246, 243, 0) 24%, rgba(244, 246, 243, .9) 50%, var(--background) 72%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding-top: 320px; padding-bottom: 72px;
}
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-l); }
/* The kicker can sit on grass, so it gets its own light backing to keep its contrast. */
.hero-kicker { display: flex; align-items: center; gap: var(--s-s); align-self: flex-start; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--text-3); font-weight: 600; font-size: .95rem; }
.hero h1 { font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -.01em; }
.hero-sub { font: 700 clamp(1.2rem, 2.2vw, 1.6rem)/1.3 var(--rounded); color: var(--accent); }
.hero-lead { max-width: 560px; color: var(--text-2); }
.hero-cta { margin-top: var(--s-s); min-width: 300px; align-self: flex-start; }
.hero-req { font-size: .875rem; color: var(--text-3); }
.hero-phone { flex: 0 1 320px; display: flex; justify-content: center; }

/* Device frames */
.phone { width: min(280px, 100%); border-radius: 50px; padding: 10px; background: var(--frame); box-shadow: 0 24px 48px rgba(20, 30, 24, .22); }
.phone img { border-radius: 40px; width: 100%; }
.phone--hero { width: min(300px, 100%); border-radius: 52px; box-shadow: 0 30px 60px rgba(20, 30, 24, .28); }
.watch { width: min(230px, 100%); border-radius: 56px; padding: 14px; background: var(--frame-watch); box-shadow: 0 24px 48px rgba(20, 30, 24, .22); }
.watch img { border-radius: 42px; width: 100%; }

/* Facts */
.facts { list-style: none; margin: 0 auto; padding-bottom: var(--s-xl); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-l); }
.fact { background: var(--surface); border-radius: var(--r-l); padding: var(--s-xl); display: flex; flex-direction: column; gap: var(--s-l); }
.fact-icon { width: 52px; height: 52px; border-radius: 26px; background: var(--mint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.fact-icon--warm { background: var(--highlight-soft); color: var(--highlight-text); }
.fact-label { color: var(--text-3); font-size: .95rem; }
.fact-value { font: 900 2.1rem/1.15 var(--rounded); }

/* Steps, joined by a dotted ball flight */
.features { padding-top: 56px; padding-bottom: 80px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; display: block; width: 28px; height: 72px; margin-left: 136px; background: url("/img/trail-start.svg") no-repeat; }
.step { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 140px; }
.step:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.step:nth-child(even) .step-media { order: 2; }
.step::after {
  content: ""; position: absolute; top: 100%; left: 150px; right: 150px; height: 140px;
  background: url("/img/trail.svg") center / 100% 100% no-repeat;
}
.step:nth-child(even)::after { transform: scaleX(-1); }
.step:last-child::after { background-image: url("/img/trail-end.svg"); transform: none; }
.step-media { display: flex; justify-content: center; }
.step-text { display: flex; flex-direction: column; gap: var(--s-l); }
.step-text h3 { font-weight: 900; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.step-text p:not(.eyebrow) { color: var(--text-2); max-width: 540px; }
.eyebrow { display: flex; align-items: center; gap: var(--s-m); color: var(--accent); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; line-height: 32px; }
.badge { flex: none; width: 32px; height: 32px; border-radius: 16px; background: var(--accent); color: var(--on-deep); display: flex; align-items: center; justify-content: center; font: 900 1rem/1 var(--rounded); letter-spacing: 0; }

/* Watch screens in a row */
.watch-gallery { padding-top: 24px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.watch-gallery .section-head p:not(.eyebrow) { color: var(--text-2); }
.watch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--s-xl); }
.watch-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-l); text-align: center; }
.watch--small { width: min(230px, 100%); border-radius: 52px; padding: 12px; }
.watch--small img { border-radius: 40px; }
.watch-grid figcaption { display: flex; flex-direction: column; gap: var(--s-xs); }
.watch-grid strong { font: 800 1.1rem/1.2 var(--rounded); }
.watch-grid figcaption span { color: var(--text-2); font-size: .95rem; }

/* Privacy */
.dark { background: var(--deep); color: var(--on-deep); }
.dark a { color: var(--on-deep); }
.privacy { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: var(--s-xxl); }
.section-head { display: flex; flex-direction: column; gap: var(--s-m); max-width: 760px; }
.section-head h2 { font-weight: 900; font-size: clamp(2rem, 4vw, 2.75rem); }
.dark .section-head p { color: var(--on-deep-2); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-l); }
.card { border-radius: var(--r-l); padding: var(--s-xl); display: flex; flex-direction: column; gap: var(--s-s); }
.card h3 { font-weight: 800; font-size: 1.3rem; }
.card p { font-size: 1rem; }
.dark .card { background: rgba(255, 255, 255, .08); }
.dark .card p { color: var(--on-deep-2); }
.privacy-note { font-size: .875rem; color: var(--on-deep-3); }

/* Support */
.support { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; }
.support-head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-l); align-items: flex-start; }
.support-head h1, .support-head h2 { font-weight: 900; font-size: clamp(2rem, 4vw, 2.75rem); }
.support-head p { color: var(--text-2); }
.faq { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-m); margin: 0; }
.faq div { background: var(--surface); border-radius: var(--r-l); padding: var(--s-xl); }
.faq dt { font: 800 1.2rem/1.3 var(--rounded); margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--text-2); font-size: 1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: var(--s-xxl); padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-l); font-size: .875rem; color: var(--text-3); }
.footer-brand { display: flex; align-items: center; gap: var(--s-m); }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-l); margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 6px 0; }
.footer-legal { width: 100%; font-size: .75rem; }

/* Plain text pages (privacy): the nav floats over the top, so the text starts below it */
.prose { max-width: 760px; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
.prose h1 { font-weight: 900; font-size: clamp(2.25rem, 5vw, 3.25rem); }
.prose h2 { font-weight: 900; font-size: 1.6rem; margin: 48px 0 var(--s-m); }
.prose h3 { font-weight: 800; font-size: 1.25rem; margin: 32px 0 var(--s-s); }
.prose p, .prose ul { margin: 0 0 var(--s-m); color: var(--text-2); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose-meta { font-size: .9rem; color: var(--text-3); margin-top: var(--s-s); }
.prose-summary { margin-top: var(--s-xxl); background: var(--surface); border-radius: var(--r-l); padding: var(--s-xl); }
.prose-summary h2 { margin-top: 0; font-size: 1.3rem; }
.prose-summary ul { margin-bottom: 0; }
.facts-list { margin: 0; background: var(--surface); border-radius: var(--r-l); padding: var(--s-s) var(--s-xl); }
.facts-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-xl); padding: var(--s-m) 0; border-bottom: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dt { font-weight: 700; color: var(--text); }
.facts-list dd { margin: 0; color: var(--text-2); }
.prose-back { margin-top: 48px; font-weight: 700; }
.nav-links a[aria-current="page"] { color: var(--accent); }

/* Phones: the steps become a timeline with the dotted line down the side */
@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 76px; }
  .nav-outer { padding-top: 12px; }
  .nav { padding: 6px 6px 6px var(--s-s); }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand span { font-size: 1.15rem; }
  .nav-links a:not(.button) { display: none; }
  .button--small { padding: 0 16px; }

  .hero::after { background: linear-gradient(180deg, rgba(244, 246, 243, 0) 0%, rgba(244, 246, 243, 0) 22%, rgba(244, 246, 243, .92) 40%, var(--background) 55%); }
  .hero-bg img { object-position: 30% 0; height: 520px; }
  .hero-inner { padding-top: 260px; padding-bottom: var(--s-xxl); gap: var(--s-l); }
  .hero-text { gap: var(--s-m); }
  .hero-cta { width: 100%; min-width: 0; padding: 18px 24px; font-size: 1.15rem; }
  .hero-req { text-align: center; }
  .hero-phone { display: none; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-m); }
  .fact { padding: var(--s-l); gap: 10px; border-radius: 20px; }
  .fact-icon { width: 40px; height: 40px; }
  .fact-value { font-size: 1.5rem; }

  .features { padding-top: 40px; padding-bottom: 24px; }
  .steps::before { display: none; }
  .steps::after { content: ""; display: block; width: 30px; height: 36px; margin-left: 13px; background: url("/img/flag.svg") no-repeat; }
  .step, .step:nth-child(even) { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 0 48px 48px; }
  .step .step-text { order: 1; gap: 10px; }
  .step .step-media { order: 2; justify-content: flex-start; margin-top: var(--s-s); }
  .step::after, .step:nth-child(even)::after, .step:last-child::after { display: none; }
  .step::before {
    content: ""; position: absolute; left: 13px; top: 40px; bottom: 4px; width: 6px;
    background: radial-gradient(circle, var(--accent) 2px, transparent 2.6px) 0 0 / 6px 12px repeat-y;
  }
  .step .badge { position: absolute; left: 0; top: 0; }
  .eyebrow { font-size: .8rem; }
  .step-text h3 { font-size: 1.75rem; }
  .step-text p:not(.eyebrow) { font-size: .95rem; }
  .phone { width: min(230px, 100%); border-radius: 42px; padding: 8px; }
  .phone img { border-radius: 34px; }
  .watch { width: min(190px, 100%); border-radius: 48px; padding: 12px; }
  .watch img { border-radius: 36px; }

  .privacy, .support { padding-top: 56px; padding-bottom: 56px; }
  .watch-gallery { padding-top: 32px; padding-bottom: 56px; gap: var(--s-xl); }
  .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--s-l); }  .watch--small { border-radius: 38px; padding: 9px; }
  .watch--small img { border-radius: 28px; }
  .watch-grid strong { font-size: 1rem; }
  .watch-grid figcaption span { font-size: .875rem; }
  .facts-list { padding: var(--s-xs) var(--s-l); }
  .facts-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .support-head .button { width: 100%; }
}

@media (forced-colors: active) {
  .nav, .fact, .card, .faq div, .button { border: 1px solid CanvasText; }
  .badge { border: 1px solid CanvasText; }
}
