/* =========================================================
   Tiro — tiro-football.com
   The app's own look: warm-white grounds, white cards, hairline
   borders, Tiro green for action, deep slate-navy ink.
   Pure CSS, no frameworks. Colours match src/lib/theme.ts in the app.
   ========================================================= */

:root {
  /* Surfaces */
  --bg:            #F6F8F3;   /* app ground */
  --bg-elevated:   #EDF1E9;   /* banding */
  --surface:       #FFFFFF;   /* cards */
  --surface-2:     #F2F5EE;   /* sunk: inputs, chips */
  --border:        #E2E8DC;
  --border-strong: #CCD6C6;

  /* Tiro green */
  --green:         #0A8249;   /* buttons, links — 4.88:1 on white */
  --green-deep:    #07713E;   /* green text on tints, hover */
  --green-bright:  #22C46E;   /* strokes, rings */
  --green-fill:    #4ADE80;   /* fills only, never text */
  --green-soft:    #ECFBF2;   /* tint wash */
  --green-tint:    #D7F7E3;   /* badges, tracks */
  --lime:          #C2F53F;
  --navy:          #0B2430;
  --navy-2:        #133441;
  --amber:         #E09612;
  --amber-soft:    #FDF3DF;

  /* Ink */
  --text:          #0E1D24;
  --text-muted:    #3C4E56;
  --text-dim:      #647479;

  /* Metrics */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;
  --maxw:          1120px;
  --shadow-sm:     0 1px 2px rgba(14, 29, 36, 0.05), 0 2px 8px rgba(14, 29, 36, 0.04);
  --shadow:        0 2px 6px rgba(14, 29, 36, 0.05), 0 18px 40px rgba(14, 29, 36, 0.08);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; color: var(--text); }
p { margin: 0 0 1.1em; }
::selection { background: var(--green-tint); color: var(--text); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.band { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 720px; }
.center .section-title { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 620px; margin-bottom: 52px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 243, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.08rem; letter-spacing: .32em; color: var(--text);
}
.brand::before {
  content: ''; width: 30px; height: 30px; border-radius: 8px;
  background: url('assets/icon-96.png') center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--border);
}
.brand:hover { color: var(--text); }
.site-footer .brand { font-size: .98rem; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-size: .92rem; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 800; font-size: .96rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(10, 130, 73, 0.22); }
.btn-primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--green); }
.btn-sm { padding: 10px 18px; font-size: .86rem; border-radius: 12px; }
.btn-store { background: var(--text); color: #fff; padding: 12px 22px; border-radius: 14px; gap: 12px; }
.btn-store:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn-store svg { width: 24px; height: 24px; }
.btn-store .store-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn-store small { font-size: .66rem; font-weight: 600; letter-spacing: .02em; opacity: .85; }
.btn-store strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(74, 222, 128, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-inner { max-width: 760px; }
.center .hero-inner { margin: 0 auto; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 .grad { color: var(--green); }
.hero-sub { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .hero-actions { justify-content: center; }
.hero-note { margin-top: 18px; color: var(--text-dim); font-size: .86rem; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; margin-bottom: 22px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid var(--green-tint);
  color: var(--green-deep); font-size: .82rem; font-weight: 700;
}
.badge svg { width: 15px; height: 15px; }

/* ---------- Phone mock-up (built in HTML, mirrors the app) ---------- */
.phone {
  position: relative; width: 320px; max-width: 100%; margin: 0 auto;
  border-radius: 46px; padding: 12px; background: var(--navy);
  box-shadow: 0 40px 80px rgba(11, 36, 48, 0.25), 0 0 0 1px rgba(11, 36, 48, 0.4);
}
.phone-screen { border-radius: 36px; overflow: hidden; background: var(--bg); padding: 46px 14px 18px; position: relative; }
.phone-screen::before {
  content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: var(--navy);
}
.ui-top { display: flex; justify-content: space-between; align-items: flex-end; margin: 0 4px 12px; }
.ui-hello { font-size: 1.32rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.ui-date { text-align: right; font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: var(--text-dim); text-transform: uppercase; }
.ui-date b { display: block; color: var(--green); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.ui-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.ui-h { font-size: .84rem; font-weight: 800; margin-bottom: 7px; display: flex; justify-content: space-between; align-items: center; }
.ui-h span { font-size: .58rem; font-weight: 800; letter-spacing: .1em; color: var(--text-dim); }
.ui-p { font-size: .72rem; color: var(--text-muted); line-height: 1.45; margin: 0; }
.ui-lbl { font-size: .54rem; font-weight: 800; letter-spacing: .12em; color: var(--text-dim); text-transform: uppercase; margin: 8px 0 4px; }
.ui-dots { display: flex; gap: 5px; }
.ui-dots i { flex: 1; height: 22px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); font-style: normal; font-size: .62rem; font-weight: 800; color: var(--text-muted); display: grid; place-items: center; }
.ui-dots i.on { background: var(--green); border-color: var(--green); color: #fff; }
.ui-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--border); }
.ui-row:first-of-type { border-top: 0; }
.ui-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.ui-check.on { background: var(--green); border-color: var(--green); }
.ui-check.on::after { content: ''; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ui-row b { display: block; font-size: .74rem; }
.ui-row small { display: block; font-size: .55rem; font-weight: 700; letter-spacing: .08em; color: var(--text-dim); text-transform: uppercase; }
.ui-row.done b { text-decoration: line-through; color: var(--text-dim); }
.ui-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #FDF3DF; border: 1px solid #E09612; color: #8A5A04; font-size: .66rem; font-weight: 900; }
.ui-ring { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 900; font-size: .9rem; color: var(--green-deep);
  background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(var(--green-bright) 0 80%, var(--green-tint) 0); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 11px 14px; box-shadow: var(--shadow); font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px; color: var(--text);
}
.float-card small { display: block; color: var(--text-dim); font-weight: 600; font-size: .7rem; }
.float-1 { left: -46px; top: 120px; }
.float-2 { right: -40px; bottom: 96px; }
.float-dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.float-dot svg { width: 17px; height: 17px; }
.phone-wrap { position: relative; padding: 10px 40px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green); border: 1px solid var(--green-tint);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.split p { color: var(--text-muted); font-size: 1.04rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: .98rem; }
.ticks li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A8249' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--green-tint);
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; }
.day { text-align: center; padding: 9px 0 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.day small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .1em; color: var(--text-dim); }
.day b { display: block; font-size: 1rem; margin: 2px 0 4px; }
.day i { display: block; width: 6px; height: 6px; border-radius: 50%; margin: 0 auto; background: var(--green-bright); }
.day.match { border-color: var(--amber); background: var(--amber-soft); }
.day.match i { background: var(--amber); }
.day.rest i { background: var(--text-dim); }
.day.today { border-color: var(--green); background: var(--green-soft); }
.sess { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.sess b { display: block; font-size: .95rem; }
.sess small { color: var(--text-dim); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.tag { margin-left: auto; font-size: .64rem; font-weight: 800; letter-spacing: .1em; color: var(--green-deep); border: 1px solid var(--green-tint); background: var(--green-soft); padding: 3px 8px; border-radius: 8px; }

/* Food panel */
.macro { display: grid; grid-template-columns: 70px 1fr 64px; gap: 10px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--text-muted); margin: 8px 0; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--green-bright); }
.kcal { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em; color: var(--green); line-height: 1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 900;
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* ---------- Dark band (privacy) ---------- */
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--lime); }
.dark .section-lead, .dark p { color: rgba(255, 255, 255, 0.72); }
.dark .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.dark .card:hover { border-color: rgba(194, 245, 63, 0.4); }
.dark .card-icon { background: rgba(194, 245, 63, 0.1); border-color: rgba(194, 245, 63, 0.25); color: var(--lime); }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.lang { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; box-shadow: var(--shadow-sm); }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 60px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--green-soft), var(--surface) 70%);
  border: 1px solid var(--green-tint); box-shadow: var(--shadow-sm);
}
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cta p { color: var(--text-muted); max-width: 540px; margin: 0 auto 28px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Legal & support pages ---------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); margin: 0; }
.updated {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: .82rem; font-weight: 600;
}
.updated svg { width: 14px; height: 14px; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h2 { font-size: 1.4rem; margin: 2.2em 0 .6em; padding-top: .4em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.08rem; margin: 1.6em 0 .5em; }
.doc p, .doc li { color: var(--text-muted); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.doc li { margin-bottom: .5em; }
.doc strong { color: var(--text); font-weight: 700; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.callout {
  display: flex; gap: 12px; align-items: flex-start; margin: 1.6em 0;
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--green-soft); border: 1px solid var(--green-tint);
}
.callout svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 2px; }
.callout p { margin: 0; color: var(--text); font-size: .95rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px; box-shadow: var(--shadow-sm); }
.toc h2 { font-size: .76rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px !important; padding: 0 !important; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; font-size: .93rem; }
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.contact-card .card-icon { margin: 0 auto 20px; }
.contact-email { display: inline-block; margin: 6px 0 18px; font-size: 1.12rem; font-weight: 800; word-break: break-all; }
.response-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid var(--green-tint); color: var(--green-deep); font-size: .84rem; font-weight: 700;
}
.response-pill svg { width: 15px; height: 15px; color: var(--green); }
.faq { margin-top: 44px; display: grid; gap: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; margin: 0; color: var(--text-dim); font-size: .84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .hero { padding-top: 48px; }
  .float-1 { left: -8px; }
  .float-2 { right: -8px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .split + .split { margin-top: 72px; }
  .container { padding: 0 16px; }
  .phone-wrap { padding: 10px 0; }
  .float-card { display: none; }
  .card, .step { padding: 22px; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
