/* Smart Gout Care shared styles
   Self-hosted Hanken Grotesk with system-ui fallback. */

/* TODO: drop HankenGrotesk woff2 into /fonts/ to enable the brand face.
   Until then, font-display:swap falls back cleanly to system-ui. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #4B7541;
  --green-light: #5A8A4D;
  --green-dark: #3A5C33;
  --green-bg: #E8F0E5;
  --safe: #18A558;
  --caution: #FB923C;
  --risky: #DC2626;
  --ink: #111827;
  --muted: #6B7280;
  --surface: #F9FAFB;
  --line: #E5E7EB;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.05), 0 1px 3px rgba(17,24,39,.06);
  --shadow: 0 4px 6px -1px rgba(17,24,39,.06), 0 10px 24px -8px rgba(17,24,39,.10);
  --shadow-lg: 0 24px 60px -20px rgba(58,92,51,.32);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* Focus visibility for keyboard users */
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 12px 18px;
  border-radius: 12px; font-weight: 600; transition: top .18s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav__links a {
  color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 10px;
}
.nav__links a:hover { background: var(--green-bg); color: var(--green-dark); text-decoration: none; }
.nav__cta {
  background: var(--green); color: #fff !important; font-weight: 600;
  padding: 10px 18px !important; border-radius: 12px !important;
}
.nav__cta:hover { background: var(--green-dark) !important; }

/* Language toggle (EN / FR) */
.lang-toggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lang-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted); background: transparent; padding: 5px 10px; border-radius: 7px; line-height: 1;
  letter-spacing: .02em;
}
.lang-btn:hover { color: var(--green-dark); }
.lang-btn[aria-pressed="true"] { background: var(--green); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: 14px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--green-dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--green-bg); border-color: var(--green-light); color: var(--green-dark); }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 14px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.badge:hover { transform: translateY(-1px); text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge__sm { font-size: 11px; opacity: .82; letter-spacing: .02em; }
.badge__lg { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--surface); }
.section--green { background: var(--green-bg); }
.section__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(28px, 4vw, 40px); }
.section__lead { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.03em; }
.hero__lead { font-size: 20px; color: var(--muted); margin-top: 20px; max-width: 30ch; }
.hero__badges { margin-top: 32px; }
.hero__privacy {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  color: var(--green-dark); font-size: 15px; font-weight: 500;
}
.hero__privacy svg { width: 18px; height: 18px; flex: none; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: var(--green-bg); color: var(--green-dark);
  font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
}
.hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); }

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  background: #fff; border-radius: 44px; padding: 12px;
  border: 12px solid #1b2420; box-shadow: var(--shadow-lg);
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 26px; background: #1b2420; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  height: 100%; background: #fff; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column; padding: 40px 20px 16px;
}
.phone__statusbar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.phone__day { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.gauge { display: flex; flex-direction: column; align-items: center; margin: 6px 0 4px; }
.gauge__ring {
  width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79% 100%),
    conic-gradient(var(--safe) 0 38%, var(--green-bg) 38% 100%);
}
.gauge__inner { text-align: center; }
.gauge__pct { font-size: 42px; font-weight: 800; color: var(--green-dark); letter-spacing: -0.03em; line-height: 1; }
.gauge__pct span { font-size: 22px; }
.gauge__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--safe); text-transform: uppercase; margin-top: 4px; }
.gauge__status { margin-top: 12px; font-size: 17px; font-weight: 700; color: var(--safe); }
.gauge__sub { font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mini-card { background: var(--surface); border-radius: 16px; padding: 12px 13px; }
.mini-card__label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.mini-card__val { font-size: 20px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.mini-card__val small { font-size: 12px; font-weight: 500; color: var(--muted); }
.mini-bar { height: 5px; border-radius: 3px; background: #e9edf1; margin-top: 8px; overflow: hidden; }
.mini-bar > i { display: block; height: 100%; border-radius: 3px; }
.dotmark { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; }

.flare-row {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--surface); border-radius: 16px; padding: 12px 13px;
}
.flare-row__icon { width: 26px; height: 26px; border-radius: 8px; background: #fdecec; display: grid; place-items: center; color: var(--risky); flex: none; }
.flare-row__text { flex: 1; }
.flare-row__title { font-size: 13px; font-weight: 700; }
.flare-row__sub { font-size: 11px; color: var(--muted); }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--green); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.phone__nav { margin-top: auto; display: flex; align-items: center; justify-content: space-around; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); font-weight: 600; }
.phone__nav .active { color: var(--green); }
.phone__scan { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 300; margin-top: -10px; box-shadow: var(--shadow); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.step__num { width: 44px; height: 44px; border-radius: 14px; background: var(--green-bg); color: var(--green-dark); display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Flare spotlight ---------- */
.flare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, #991B1B, var(--risky)); color: #fff;
  border-radius: var(--radius-lg); padding: 56px; box-shadow: 0 24px 60px -20px rgba(153,27,27,.34);
}
.flare h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; }
.flare p { color: rgba(255,255,255,.86); font-size: 17px; margin-top: 16px; }
.flare__tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.limit-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 20px; }
.limit-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); font-weight: 700; }
.limit-card .from { font-size: 15px; color: rgba(255,255,255,.6); text-decoration: line-through; margin-top: 10px; }
.limit-card .to { font-size: 28px; font-weight: 800; margin-top: 2px; letter-spacing: -0.02em; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--green-bg); color: var(--green-dark); display: grid; place-items: center; margin-bottom: 16px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Privacy section ---------- */
.privacy-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .check { width: 26px; height: 26px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; margin-top: 2px; }
.privacy-list strong { display: block; font-size: 16px; }
.privacy-list span { color: var(--muted); font-size: 15px; }
.privacy-visual { display: grid; place-items: center; }
.privacy-shield { width: 220px; height: 220px; border-radius: 50%; background: var(--white); border: 2px solid var(--green-light); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--green-dark); }
.privacy-shield svg { width: 96px; height: 96px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 820px; margin-inline: auto; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan--featured { border-color: var(--green); box-shadow: var(--shadow); position: relative; }
.plan__flag { position: absolute; top: -14px; left: 36px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan__price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; }
.plan__price small { font-size: 17px; font-weight: 600; color: var(--muted); }
.plan__note { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.plan__list .tick { color: var(--green); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--green); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 15px; padding: 0 0 20px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background: linear-gradient(135deg, var(--green-dark), var(--green)); border-radius: var(--radius-lg); color: #fff; padding: 68px 40px; box-shadow: var(--shadow-lg); }
.final-cta h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; }
.final-cta p { color: rgba(255,255,255,.85); font-size: 18px; margin: 16px auto 30px; max-width: 46ch; }
.final-cta .badges { justify-content: center; }
.final-cta .badge { background: #fff; color: var(--ink); }
.final-cta .badge:hover { color: var(--ink); }
.final-cta .badge svg { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d1d5db; padding: 56px 0 40px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer__tagline { color: #9ca3af; font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: 14px; font-weight: 700; }
.footer__col a { display: block; color: #d1d5db; font-size: 15px; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #2b3441; margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #9ca3af; }
.footer__bottom .disclaimer { color: #9ca3af; }

/* ---------- Legal / content pages ---------- */
.legal { padding: 56px 0 88px; }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); }
.legal .updated { color: var(--muted); font-size: 15px; margin-top: 10px; }
.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 17px; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal li { color: #374151; font-size: 16px; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal a { font-weight: 500; }
.callout { background: var(--green-bg); border-left: 4px solid var(--green); border-radius: 12px; padding: 18px 22px; margin-top: 20px; }
.callout p { margin-top: 0; color: var(--green-dark); }
.note-ondevice { background: #fff7ed; border-left: 4px solid var(--caution); border-radius: 12px; padding: 16px 20px; margin-top: 16px; }
.note-ondevice p { margin-top: 0; color: #9a3412; font-size: 15px; }
.support-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.support-card h3 { margin-top: 0; font-size: 17px; }
.support-card p { font-size: 15px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__badges, .hero .badges { justify-content: center; }
  .steps, .features { grid-template-columns: 1fr; }
  .flare, .privacy-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .flare { padding: 36px; }
  .pricing { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .features { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
