/* AutoAra's site: the app's own warm paper and honey (welcome_screen.dart's Warm), Outfit for headings */
@font-face { font-family: 'Outfit'; src: url('fonts/Outfit-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/Outfit-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --paper: #FCF5EA;
  --paper-2: #F7ECDB;
  --card: #FFFFFF;
  --caramel: #9A5B05;
  --ink: #4A3221;
  --soft: #8F7761;
  --faint: #B5A08A;
  --line: #EADCC6;
  --honey: #FFB443;
  --honey-deep: #F59A23;
  --honey-edge: #D9801A;
  --honey-tint: #FFE6BF;
  --court: #3E7BC4;
  --court-dark: #2F5F9C;
  --grass: #3E8A5B;
  --radius: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --display: 'Outfit', -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--caramel); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: var(--ink); }
h3 { font-size: 22px; font-weight: 800; color: var(--ink); }
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey-edge); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--soft); max-width: 640px; }
section { padding: 96px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(252, 245, 234, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--caramel); font-family: var(--display); font-weight: 800; font-size: 24px; }
.brand img { width: 44px; height: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--caramel); }
.lang { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--soft); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang:hover { color: var(--caramel); border-color: var(--honey); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); background: linear-gradient(180deg, var(--honey), var(--honey-deep)); border: none; border-radius: 999px; padding: 12px 22px; box-shadow: 0 4px 0 var(--honey-edge); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--honey-edge); }
.nav .btn { padding: 9px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--honey-edge); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .wrap { gap: 12px; } .lang { margin-left: auto; } }

/* ---------- hero */
.hero { padding: 56px 0 88px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 22px; }
.pill b { background: var(--honey-tint); color: var(--caramel); border-radius: 999px; padding: 2px 10px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.hero h1 span { color: var(--caramel); display: block; }
.hero .lead { font-size: 20px; margin-bottom: 30px; }
.store { display: inline-block; border-radius: 12px; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store img { height: 56px; width: auto; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--soft); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--honey-edge); font-weight: 800; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-left: auto; margin-right: auto; } .hero-note { justify-content: center; } }

/* ---------- the phone (the app's Mark the court screen, drawn) */
.phone { position: relative; width: 300px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 19.5; background: #1d1612; border-radius: 48px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(74, 50, 33, .45), 0 0 0 2px #3a2d24 inset; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; background: var(--paper); border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; }
.screen .top { display: flex; justify-content: space-between; align-items: center; padding: 54px 16px 6px; }
.screen .x { font-size: 20px; color: var(--ink); font-weight: 700; }
.screen .start { background: var(--honey-deep); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 6px 14px; }
.screen .title { text-align: center; font-family: var(--display); font-weight: 800; font-size: 17px; margin: 4px 0 4px; }
.screen .help { font-size: 10.5px; color: var(--soft); padding: 0 16px; line-height: 1.45; }
.screen .frame { margin: 12px 10px 6px; border-radius: 14px; overflow: hidden; }
.screen .dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.screen .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--honey-tint); }
.screen .dots i:nth-child(2) { background: var(--honey-deep); }
.screen .bar { margin: auto 18px 22px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 8px 24px -10px rgba(74,50,33,.35); border-radius: 26px; display: flex; justify-content: space-around; padding: 7px; }
.screen .bar div { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; padding: 6px 8px; border-radius: 18px; }
.screen .bar div:first-child { background: #fff; box-shadow: 0 2px 8px rgba(74,50,33,.15); }
.screen .bar svg { width: 18px; height: 18px; }

/* ---------- the match, then the rallies only */
.timeline-card { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: 0 20px 50px -30px rgba(74,50,33,.35); margin-top: 48px; }
.tl-row { display: grid; grid-template-columns: 150px 1fr 80px; gap: 18px; align-items: center; margin: 14px 0; }
.tl-row .label { font-family: var(--display); font-weight: 800; font-size: 15px; }
.tl-row .len { font-family: var(--display); font-weight: 800; color: var(--soft); text-align: right; }
.track { height: 34px; border-radius: 10px; background: #EFE4D3; position: relative; overflow: hidden; display: flex; }
.track i { display: block; height: 100%; }
.track .dead { background: repeating-linear-gradient(135deg, #E6D8C2 0 6px, #EFE4D3 6px 12px); }
.track .rally { background: linear-gradient(180deg, var(--honey), var(--honey-deep)); }
.track.kept { background: transparent; }
.track.kept .rally { border-right: 2px solid #fff; }
.track.kept .rally:last-child { border-right: 0; }
.tl-key { display: flex; gap: 22px; justify-content: center; font-size: 14px; color: var(--soft); margin-top: 18px; flex-wrap: wrap; }
.tl-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: linear-gradient(180deg, var(--honey), var(--honey-deep)); }
.tl-key span.d::before { background: repeating-linear-gradient(135deg, #E6D8C2 0 3px, #EFE4D3 3px 6px); }
.reveal .track.kept { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal.in .track.kept { clip-path: inset(0 0 0 0); }
@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; gap: 6px; } .tl-row .len { text-align: left; } .timeline-card { padding: 22px; } }

/* ---------- three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.pillar { background: var(--card); border-radius: var(--radius); padding: 30px 26px; }
.pillar .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--honey-tint); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .ic svg { width: 26px; height: 26px; color: var(--honey-edge); }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--soft); font-size: 16px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- features */
.features { background: var(--paper-2); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 88px; }
.feature:nth-child(even) .visual { order: -1; }
.feature .num { font-family: var(--display); font-weight: 800; color: var(--honey-deep); font-size: 15px; letter-spacing: .1em; margin-bottom: 10px; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.feature p { color: var(--soft); margin-bottom: 16px; }
.feature ul { list-style: none; }
.feature li { padding-left: 28px; position: relative; margin: 8px 0; font-size: 16px; }
.feature li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--honey-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23D9801A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.visual { background: var(--card); border-radius: 28px; padding: 26px; box-shadow: 0 24px 60px -36px rgba(74,50,33,.4); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; } .feature:nth-child(even) .visual { order: 0; } }

/* feature visuals */
.v-court svg, .v-ball svg { width: 100%; height: auto; border-radius: 16px; }
.v-words { position: relative; border-radius: 16px; overflow: hidden; }
.v-words .date { position: absolute; left: 7%; top: 9%; color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.v-words .ttl { position: absolute; left: 7%; top: 17%; color: var(--honey); font-family: var(--display); font-weight: 800; font-size: 26px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.v-words .swatches { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; background: rgba(255,255,255,.85); padding: 6px; border-radius: 999px; }
.v-words .swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.v-trim .film { display: flex; height: 64px; border-radius: 12px; overflow: hidden; position: relative; }
.v-trim .film i { flex: 1; background: linear-gradient(180deg, #8DB5E2, var(--court) 55%, var(--grass)); border-right: 1px solid rgba(255,255,255,.35); }
.v-trim .keep { position: absolute; top: 0; bottom: 0; left: 18%; right: 22%; border: 4px solid var(--honey-deep); border-left-width: 14px; border-right-width: 14px; border-radius: 12px; box-shadow: 0 0 0 999px rgba(252,245,234,.72); }
.v-trim .head { position: absolute; top: -8px; bottom: -8px; left: 44%; width: 3px; background: var(--ink); border-radius: 3px; }
.v-trim .times { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--display); font-weight: 800; color: var(--soft); font-size: 14px; }
.v-trim .locked { margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; background: var(--honey-tint); color: var(--caramel); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.v-matches .day { font-family: var(--display); font-weight: 700; color: var(--soft); font-size: 14px; margin-bottom: 10px; }
.v-matches .grid { display: grid; gap: 10px; }
.v-matches .wide { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.v-matches .tall { grid-template-columns: repeat(3, 1fr); }
.v-matches .tile { border-radius: 14px; background: linear-gradient(180deg, #8DB5E2 0%, #A9C8EA 45%, var(--court) 70%, var(--court-dark)); position: relative; color: #fff; font-family: var(--display); font-weight: 700; font-size: 11px; overflow: hidden; }
.v-matches .wide .tile { aspect-ratio: 16 / 9; }
.v-matches .tall .tile { aspect-ratio: 9 / 16; }
.v-matches .tile .t { position: absolute; left: 8px; top: 6px; }
.v-matches .tile .d { position: absolute; left: 8px; bottom: 6px; }
.v-bg { display: flex; justify-content: center; }
.lock { width: 260px; max-width: 100%; aspect-ratio: 9/12; border-radius: 30px; background: linear-gradient(160deg, #3b2a1f, #1c140f); padding: 26px 16px; color: #fff; text-align: center; }
.lock .clock { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; margin: 8px 0 22px; }
.lock .note { background: rgba(255,255,255,.14); border-radius: 18px; padding: 12px 14px; text-align: left; backdrop-filter: blur(6px); }
.lock .note b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lock .note b img { width: 22px; border-radius: 6px; }
.lock .note small { display: block; font-size: 12px; opacity: .8; margin: 4px 0 8px; }
.lock .prog { height: 6px; border-radius: 6px; background: rgba(255,255,255,.2); overflow: hidden; }
.lock .prog i { display: block; height: 100%; width: 62%; background: var(--honey); border-radius: 6px; }

/* ---------- how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, var(--honey), var(--honey-deep)); font-family: var(--display); font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--soft); font-size: 15px; }
.tips { margin-top: 22px; background: var(--honey-tint); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 14px 30px; flex-wrap: wrap; align-items: center; }
.tips strong { font-family: var(--display); color: var(--caramel); }
.tips span { font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- plans */
.plans { background: var(--paper-2); }
.toggle { display: inline-flex; background: var(--card); border-radius: 999px; padding: 5px; margin: 28px auto 0; box-shadow: 0 2px 10px rgba(74,50,33,.08); }
.toggle button { border: 0; background: transparent; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--soft); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.toggle button.on { background: var(--honey-tint); color: var(--caramel); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; max-width: 860px; margin-left: auto; margin-right: auto; text-align: left; }
.plan { background: var(--card); border-radius: 28px; padding: 34px 30px; border: 2.5px solid transparent; position: relative; }
.plan.best { border-color: var(--honey-deep); }
.plan .badge { position: absolute; top: -14px; right: 24px; background: var(--honey-deep); color: #fff; font-family: var(--display); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 12px; }
.plan h3 { font-size: 24px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 44px; margin: 14px 0 2px; color: var(--ink); }
.plan .price small { font-size: 16px; color: var(--soft); font-weight: 700; }
.plan .billed { color: var(--soft); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; margin-top: 22px; }
.plan li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--honey-edge); font-weight: 800; }
.plan li.no { color: var(--faint); }
.plan li.no::before { content: "–"; color: var(--faint); }
.fine { margin-top: 22px; color: var(--soft); font-size: 13px; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { background: var(--card); border-radius: 18px; margin: 12px 0; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--display); font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--honey-edge); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); padding-bottom: 20px; }

/* ---------- wish well (feedback) */
.wish { background: var(--card); border-radius: 32px; padding: 44px; max-width: 780px; margin: 0 auto; box-shadow: 0 24px 60px -40px rgba(74,50,33,.4); }
.kinds { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 16px; }
.kinds label { cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-block; border: 2px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 15px; color: var(--soft); transition: all .15s; }
.kinds input:checked + span { border-color: var(--honey-deep); background: var(--honey-tint); color: var(--caramel); }
.kinds input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.wish textarea { width: 100%; min-height: 140px; border: 2px solid var(--line); border-radius: 18px; padding: 16px; font: inherit; color: var(--ink); background: var(--paper); resize: vertical; }
.wish textarea:focus { outline: none; border-color: var(--honey-deep); }
.wish .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.wish .row small { color: var(--soft); font-size: 13px; max-width: 440px; }
@media (max-width: 560px) { .wish { padding: 28px 22px; } }

/* ---------- final call + footer */
.cta { text-align: center; }
.cta .icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 16px 40px -18px rgba(74,50,33,.5); }
.cta .store { margin-top: 26px; }
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; gap: 18px 28px; flex-wrap: wrap; align-items: center; }
footer .links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--caramel); }

/* scroll-in */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } .reveal .track.kept { clip-path: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- the privacy policy page */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-bottom: 8px; }
.doc .updated { color: var(--soft); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { margin: 10px 0; }
.doc ul { padding-left: 22px; }
.doc .card { background: var(--card); border-radius: var(--radius); padding: 40px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
@media (max-width: 560px) { .doc .card { padding: 26px 20px; } }
