/* fletchedbanana.com — same look as the apps (Pro Obsidian dark / Range Daylight light). */
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(/font-chakra-600.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(/font-chakra-700.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 300 800; font-display: swap; src: url(/font-jakarta.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap; src: url(/font-mono.woff2) format('woff2'); }

:root {
  --f-display: 'Chakra Petch', system-ui, sans-serif;
  --f-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --banana: #FFD200; --banana-hi: #FFE033; --on-banana: #111312;
  --bg: #0F1110; --card: #171A18; --recessed: #111412; --head: rgba(15, 17, 16, .9);
  --ink: #F3F4F3; --muted: #9AA39E; --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --gold-text: #FFD200; --pos: #3DBFAF; --miss: #E63946;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --forest: linear-gradient(160deg, #20331f 0%, #142114 45%, #0c140d 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F6F5; --card: #FFFFFF; --recessed: #ECEEED; --head: rgba(245, 246, 245, .9);
    --ink: #111312; --muted: #57605B; --line: rgba(17, 19, 18, .1); --line-strong: rgba(17, 19, 18, .2);
    --gold-text: #7A6100; --pos: #1E7F73; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .25);
    --forest: linear-gradient(160deg, #3b5a37 0%, #2a4327 45%, #1b2c1a 100%);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F5F6F5; --card: #FFFFFF; --recessed: #ECEEED; --head: rgba(245, 246, 245, .9);
  --ink: #111312; --muted: #57605B; --line: rgba(17, 19, 18, .1); --line-strong: rgba(17, 19, 18, .2);
  --gold-text: #7A6100; --pos: #1E7F73; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .25);
  --forest: linear-gradient(160deg, #3b5a37 0%, #2a4327 45%, #1b2c1a 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.overline { font: 600 .75rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--banana); color: var(--on-banana); padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--head); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.05rem var(--f-display); text-transform: uppercase; font-style: italic; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--recessed); }
.nav a.cta { background: var(--banana); color: var(--on-banana); }
@media (max-width: 640px) { .nav a:not(.cta):not([aria-current="page"]) { display: none; } .brand span { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 12px; font: 700 .95rem var(--f-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink); background: var(--card); cursor: pointer; }
.btn.primary { background: var(--banana); color: var(--on-banana); border-color: var(--banana); box-shadow: 0 10px 30px -12px rgba(255, 210, 0, .6); }
.btn.primary:hover { background: var(--banana-hi); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--banana); outline-offset: 2px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero .stack { position: relative; min-height: 540px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .stack { min-height: 0; } }

/* photos (yours) and their placeholders until they arrive */
.photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--forest); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.todo { display: grid; place-items: center; color: rgba(255, 255, 255, .75); text-align: center; padding: 16px; }
.photo.todo::before { content: ''; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 20% 110%, rgba(255, 210, 0, .18), transparent 40%),
    repeating-linear-gradient(100deg, transparent 0 34px, rgba(0, 0, 0, .18) 34px 40px, transparent 40px 90px); }
.photo.todo span { position: relative; font: 600 .8rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }

/* phone & laptop frames for screenshots */
.phone { width: min(260px, 70vw); border-radius: 34px; padding: 10px; background: #050605; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { border-radius: 26px; width: 100%; }
.screen { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); background: var(--card); }
.screen .bar3 { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; background: var(--recessed); border-bottom: 1px solid var(--line); }
.screen .bar3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.hero .stack .photo { position: absolute; inset: 0 26% 14% 0; aspect-ratio: auto; }
.hero .stack .phone { width: 230px; }
.hero .stack .phone { position: absolute; right: 0; bottom: 0; }
@media (max-width: 860px) { .hero .stack .photo { position: relative; inset: auto; aspect-ratio: 4 / 3; width: 82%; } .hero .stack .phone { position: relative; width: min(200px, 52vw); margin: -160px 0 0 auto; } }

/* sections */
section.band { padding: clamp(48px, 8vw, 96px) 0; }
main.band { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 8vw, 96px); }
section.band.alt { background: var(--card); border-block: 1px solid var(--line); }
.intro { max-width: 46em; margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
section.alt .feature { background: var(--bg); }
.feature .ic { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.showcase + .showcase { margin-top: clamp(48px, 7vw, 88px); }
.showcase.flip > :first-child { order: 2; }
.showcase .shots { display: flex; justify-content: center; gap: 16px; align-items: flex-end; }
.showcase > * { min-width: 0; } /* grid items may shrink below their content */
@media (max-width: 860px) {
  /* two phone mock-ups side by side share the screen width instead of overflowing it */
  .showcase .shots { gap: 10px; }
  .showcase .shots .phone { width: auto !important; flex: 1 1 0; min-width: 0; max-width: 260px; padding: 6px; border-radius: 24px; }
  .showcase .shots .phone img { border-radius: 18px; }
  .showcase .shots .phone + .phone { flex: 0.85 1 0; }
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } .showcase.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--pos); font-weight: 800; }

.photos { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 16vw, 210px); gap: 14px; }
.photos .photo { aspect-ratio: auto; height: 100%; }
.photos .g-a { grid-column: span 4; grid-row: span 2; }   /* the big one, with two stacked beside it */
.photos .g-b { grid-column: span 2; }
.photos .g-c { grid-column: span 2; }                     /* a row of three */
@media (max-width: 700px) {
  .photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .photos .g-a { grid-column: span 2; grid-row: span 1; }
  .photos .g-b, .photos .g-c { grid-column: span 1; }
  .photos .photo:nth-child(6) { grid-column: span 1; }
  .photos .photo:nth-child(5) { grid-column: span 2; order: 1; } /* the wide recurve shot: full width, at the end */
}

.cta-band { text-align: center; }
.cta-band .btns { justify-content: center; }

/* instructions */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.doc nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.doc nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.doc nav a:hover { color: var(--ink); background: var(--recessed); }
.doc article { max-width: 46em; }
.doc article h2 { margin-top: 1.6em; scroll-margin-top: 84px; }
.doc article h2:first-child { margin-top: 0; }
.doc article ol, .doc article ul { padding-left: 1.3em; }
.doc article li { margin: 6px 0; }
.doc .tip { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--banana); border-radius: 10px; padding: 14px 16px; margin: 1em 0; }
.doc figure { margin: 1.2em 0; }
.doc figure .phone { margin: 0 auto; }
.doc figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc nav { position: static; grid-auto-flow: column; overflow-x: auto; } }

/* contact form */
.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 28px); }
.field { display: grid; gap: 6px; }
.field label { font: 600 .75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--recessed); color: var(--ink); font: 500 1rem var(--f-sans); }
.field textarea { min-height: 150px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.note.ok { background: rgba(61, 191, 175, .14); border: 1px solid var(--pos); }
.note.err { background: rgba(230, 57, 70, .12); border: 1px solid var(--miss); }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* the sunset woods behind the closing call to action */
.photo-band { position: relative; color: #fff; background: #0c140d url(/img/photo-sunset.jpg) center 60% / cover no-repeat; }
.photo-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8, 10, 9, .72), rgba(8, 10, 9, .82)); }
.photo-band .wrap { position: relative; }
.photo-band .muted { color: rgba(255, 255, 255, .82); }
.photo-band a:not(.btn) { color: var(--banana); }
.photo-band .btn:not(.primary) { background: rgba(0, 0, 0, .35); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* contact: form beside a photo (photo hidden on small screens) */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-grid .photo.side { aspect-ratio: 3 / 4; position: sticky; top: 84px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid .photo.side { display: none; } }

/* How it works: a wide photo above the heading */
.photo.banner { aspect-ratio: 21 / 8; margin-bottom: 28px; }
.photo.banner img { object-position: center 22%; }
@media (max-width: 700px) { .photo.banner { aspect-ratio: 16 / 9; } }

/* contact form: the Cloudflare Turnstile check */
.turnstile { min-height: 65px; }

/* never let anything push the page sideways on a phone */
html, body { overflow-x: clip; }

/* the free scoring app (Tally) */
.tally-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); text-decoration: none; font-size: .92rem; }
.tally-pill b { color: var(--gold-text); }
.tally-pill:hover { border-color: var(--gold-text); }
section.band.tally { background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 210, 0, .10), transparent 60%), var(--card); border-block: 1px solid var(--line); }
.tally .lead { font-size: 1.12rem; color: var(--muted); max-width: 44em; }
.tally .small-note { font-size: .9rem; margin-top: 12px; max-width: 44em; }
.tally-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 28px; }
.tally-item .phone { width: min(230px, 100%); margin: 0 auto 18px; }
.tally-item h3 { margin-bottom: .4em; }
.tally-item .ticks li { font-size: .98rem; color: var(--muted); }
@media (max-width: 860px) {
  .tally-grid { grid-template-columns: minmax(0, 1fr); }
  .tally-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: start; }
  .tally-item .phone { width: 130px; margin: 0; padding: 6px; border-radius: 22px; grid-row: span 2; }
  .tally-item .phone img { border-radius: 16px; }
}
@media (max-width: 420px) { .tally-item { grid-template-columns: 104px minmax(0, 1fr); } .tally-item .phone { width: 104px; } }
#tally { scroll-margin-top: 64px; } /* land below the sticky header */

/* the Fletched Banana logo in the header */
.brand img.logo { width: auto; height: 76px; border-radius: 0; }
@media (max-width: 640px) { .brand img.logo { height: 60px; } }

/* phones: the menus open downwards from a button instead of hiding links or scrolling sideways */
.menu-btn, .toc-btn { display: none; align-items: center; gap: 8px; font: 600 .95rem var(--f-sans); color: var(--ink); background: var(--recessed); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; transition: transform .2s, background .2s; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ''; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  .top .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 14px; }
  .top.open .nav { display: flex; }
  .nav a:not(.cta):not([aria-current="page"]) { display: block; }
  .top .nav a { padding: 12px 12px; font-size: 1.05rem; }
  .top .nav a.cta { text-align: center; margin-top: 6px; }
}
.toc-btn::after { content: '▾'; margin-left: auto; transition: transform .2s; }
.toc-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
@media (max-width: 860px) {
  .toc-btn { display: flex; width: 100%; justify-content: space-between; }
  .doc nav { display: none; grid-auto-flow: row; overflow: visible; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-top: -30px; }
  .doc nav.open { display: grid; }
  .doc nav a { padding: 10px 12px; }
}

/* install page */
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 48px; }
.install-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 28px); }
.install-card h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.install-card .yours { display: none; font: 600 .72rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-banana); background: var(--banana); border-radius: 6px; padding: 4px 8px; width: max-content; margin: 0 0 12px; }
.install-card.mine { border-color: var(--banana); }
.install-card.mine .yours { display: block; }
.install-card.mine-first { order: -1; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin: 14px 0; min-height: 28px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--recessed); border: 1px solid var(--line-strong); font: 700 .85rem var(--f-display); color: var(--gold-text); }
.glyph { display: inline-grid; place-items: center; vertical-align: -4px; width: 26px; height: 26px; border-radius: 6px; background: var(--recessed); border: 1px solid var(--line-strong); color: #0A84FF; }
.install-card .small { font-size: .9rem; margin: 0; }
.doc-narrow { max-width: 46em; }
.small-note a, .tally .install-link { font-weight: 600; }
@media (max-width: 760px) { .install-grid { grid-template-columns: minmax(0, 1fr); } }

/* early access note in the closing call to action */
.early { max-width: 40em; margin: 6px auto 34px; padding: 20px 28px; line-height: 1.65; border: 1px solid rgba(255, 210, 0, .35); border-radius: 12px; background: rgba(15, 17, 16, .55); color: #C6CDC9; font-size: .92rem; }
.early b { color: #F3F4F3; } /* always on the dark photo, so not the theme colour */

/* Legal pages (privacy notice, organiser terms) */
.doc article table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.doc article th, .doc article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc article th { font: 600 .72rem var(--f-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc article h3 { margin: 1.4em 0 .4em; font-size: 1.1rem; }
.table-scroll { overflow-x: auto; }
.draft-note { background: rgba(230, 57, 70, .12); border: 1px solid var(--miss); border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; font-weight: 600; }
mark.todo { background: rgba(255, 210, 0, .3); color: inherit; padding: 0 3px; border-radius: 3px; }
