/* Fishtail web: design tokens and shared styles (from the Fishtail Web Home design). */
:root {
  --ground: #ededf5;
  --indigo: #2a2657;
  --indigo-2: #6b67af;
  --indigo-pill: #332f6b;
  --teal: #3fc2c2;
  --teal-text: #1f9a9a;
  --teal-soft: #e6f7f7;
  --amber: #f0b429;
  --text: #26243a;
  --text-2: #4a4860;
  --muted: #5d5b70;
  --line: #d6d6e4;
  --line-2: #e6e6f0;
  --thumb: #f5f5fa;
  --white: #ffffff;
  --radius-card: 14px;
  --radius-item: 12px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-2); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* top bar */
.topbar { background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); color: var(--white); }
#site-header:empty { display: block; min-height: 56px; background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); } /* holds the top bar's place until it is drawn */
.topbar nav { max-width: 1200px; margin: 0 auto; padding: 10px 16px; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.topbar .links { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 560px; font-size: 15px; }
.topbar .links a { display: inline-flex; align-items: center; gap: 7px; color: #e3e2f3; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topbar .links a[aria-current="page"] { color: var(--white); font-weight: 600; border-bottom-color: var(--teal); }
/* Each label keeps the width of its bold form, so the links do not move when the current page (bold) changes */
.topbar .links a .lbl { display: inline-flex; flex-direction: column; }
.topbar .links a .lbl::after { content: attr(data-t); font-weight: 600; height: 0; visibility: hidden; overflow: hidden; }
.topbar .links img { width: 24px; height: 24px; display: block; }
.topbar .account { display: flex; align-items: center; gap: 10px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); color: var(--white); text-decoration: none; cursor: pointer; font-size: 14px; }
.pill-btn:hover { color: var(--white); background: rgba(255,255,255,0.2); }
.pill-btn.pill-amber { background: var(--amber); border-color: var(--amber); color: var(--text); font-weight: 600; }
.pill-btn.pill-amber:hover { color: var(--text); background: #f4c24d; }
.lang-btn { font-weight: 700; letter-spacing: 0.04em; font-size: 13px; }
/* Hover (Amro, 10 Nov 2026): a soft light behind the link, and a hint of the teal line the page's own link carries */
.topbar .links a { transition: background-color .15s, color .15s, border-color .15s; }
.topbar .links a:hover { color: var(--white); background: rgba(255,255,255,0.14); border-bottom-color: rgba(63,194,194,0.55); }
.topbar .links a[aria-current="page"]:hover { border-bottom-color: var(--teal); }
.pill-btn { transition: background-color .15s, border-color .15s; }
.pill-btn:hover { border-color: rgba(255,255,255,0.6); }
/* Wider screens: the whole bar on one line (Amro, 10 Nov 2026): a smaller type and tighter spacing; between tablet
   and laptop widths the links show their icons only, with their names as tooltips, as on phones */
@media (min-width: 641px) {
  .topbar nav { flex-wrap: nowrap; gap: 12px; }
  .topbar .links { flex: 1 1 auto; flex-wrap: nowrap; gap: 2px; font-size: 14px; min-width: 0; }
  .topbar .links a { padding: 6px 8px; gap: 6px; white-space: nowrap; border-radius: 8px 8px 2px 2px; }
  .topbar .links img, .topbar .links a svg { width: 20px; height: 20px; }
  .topbar .account { flex: 0 0 auto; gap: 8px; }
  .topbar .account .pill-btn { min-height: 38px; padding: 4px 12px; font-size: 14px; white-space: nowrap; }
  .topbar .account .pill-btn:has(.avatar) { padding: 3px 12px 3px 4px; }
}
/* Signed out on a wide screen the right side holds four buttons (language, Plans, Sign in, Create a free account): the
   links sit a little closer so "Coach Card Analysis" never runs into the language button (11 Nov 2026) */
@media (min-width: 1241px) {
  .topbar nav:has(.plans-btn) .links a { padding: 6px 6px; }
  .topbar nav:has(.plans-btn) .account { gap: 6px; }
}
@media (min-width: 641px) and (max-width: 1240px) {
  .topbar .links { justify-content: flex-start; gap: 4px; }
  .topbar .links a { padding: 6px 10px; }
  .topbar .links .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .links img, .topbar .links a svg { width: 24px; height: 24px; }
}
/* Phone: the links show their icons only (each keeps its name for screen readers and as a tooltip) */
@media (max-width: 640px) {
  .topbar nav { padding: 6px 10px; gap: 6px; flex-wrap: nowrap; }
  .topbar .links { flex: 1 1 auto; flex-wrap: nowrap; gap: 0; justify-content: space-between; min-width: 0; }
  .topbar .links a { min-width: 40px; min-height: 44px; justify-content: center; padding: 0; }
  .topbar .account { flex: 0 0 auto; }
  .topbar .account .pill-amber { display: none; } /* one row: Sign in leads to both sign in and create an account */
  .topbar .links a svg, .topbar .links img { width: 26px; height: 26px; }
  .topbar .links .lbl, .topbar .account .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .account .pill-btn:has(.avatar) { padding: 6px; }
  .topbar .account .lang-btn { padding: 6px 10px; gap: 4px; }
  .topbar .account .lang-btn svg { display: none; }
  /* signed out: Plans takes the language button's place (choosing a language needs an account anyway) */
  .topbar .account:has(.plans-btn) .lang-btn { display: none; }
  .topbar .account .plans-btn { padding: 6px 10px; }
}
/* the narrowest phones (360 px): smaller menu icons so nothing overlaps */
@media (max-width: 380px) {
  .topbar .links a { min-width: 34px; }
  .topbar .links a svg, .topbar .links img { width: 22px; height: 22px; }
  .topbar .account .pill-btn { padding-left: 10px; padding-right: 10px; }
}
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--teal); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
/* the plan's icon on the avatar (gift box Free, feather Light, crown Premium), and the name beside it */
.avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.plan-badge { position: absolute; right: -6px; bottom: -5px; width: 17px; height: 17px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 2px var(--indigo); display: flex; align-items: center; justify-content: center; }
.plan-badge img { width: 12px; height: 12px; display: block; }
.plans-btn img { width: 18px; height: 18px; display: block; background: var(--white); border-radius: 6px; padding: 2px; box-sizing: content-box; }
.pill-btn.acct .lbl { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 2px; }

.upgrade-bar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; background: var(--amber); color: var(--indigo); font-size: 14px; font-weight: 600; padding: 6px 16px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.upgrade-bar svg { flex: 0 0 auto; }
.upgrade-bar .ub-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.upgrade-bar .ub-btn { flex: 0 0 auto; background: var(--indigo); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1; padding: 5px 12px; border-radius: 999px; }
.upgrade-bar .ub-btn:hover, .upgrade-bar .ub-btn:focus-visible { color: #fff; outline: 2px solid var(--indigo); outline-offset: 2px; }

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 24px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,0.7); }
.site-footer div { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer .ig { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* shared pieces */
h1.page-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--indigo); }
.muted { color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-item); padding: 18px 20px; }
.btn-amber { display: inline-block; background: var(--amber); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; }
.btn-amber:hover { color: var(--text); }
.btn-teal { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--teal); color: var(--indigo); font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.btn-outline { min-height: 44px; padding: 0 24px; border: 2px solid var(--teal); border-radius: 999px; background: var(--white); color: var(--indigo); font-weight: 600; font-size: 15px; cursor: pointer; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 4px; }
.segmented button { border: 0; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; background: transparent; color: var(--indigo); }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--indigo-pill); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; min-height: 38px; background: var(--white); color: var(--indigo); border: 1px solid var(--line); }
.chips button[aria-pressed="true"] { background: var(--indigo); color: var(--white); border-color: var(--indigo); font-weight: 600; }
.label-caps { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.message { padding: 14px 16px; border-radius: var(--radius-item); background: var(--white); border: 1px solid var(--line); }
.message.error { border-color: #e2a39a; background: #fdeeeb; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--indigo); }
.form label[hidden] { display: none; }
html { scroll-padding-top: calc(var(--ft-head, 0px) + 8px); } /* anchors stop below the sticky top bar */ /* the hidden attribute wins over display: flex (Amro, 5 Nov) */
.form input, .form select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--white); }
@media (max-width: 600px) { h1.page-title { font-size: 28px; } .topbar .links { flex-basis: 100%; } }

/* text pages */
.prose { max-width: 760px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--indigo); margin: 28px 0 8px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--indigo); margin: 22px 0 6px; }
.prose h4 { font-size: 17px; margin: 18px 0 4px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.refs { display: flex; flex-direction: column; gap: 8px; } /* the page's full width (Amro, 10 Nov 2026) */
.refs h2 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--indigo); }
.refs p { margin: 0; }
.refs ul { list-style: none; margin: 8px 0 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-item); }
.refs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.refs li:first-child { border-top: 0; }
.refs .meta { font-size: 14px; color: var(--muted); }

/* Fishtail Web install hint (iPhone and iPad, Safari only; assets/shell.js) */
.install-hint { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(42, 38, 87, 0.22); font-size: 14px; line-height: 1.4; }
.install-hint img { border-radius: 10px; flex: 0 0 auto; }
.install-hint p { margin: 0; flex: 1 1 auto; }
.install-hint .share { display: inline-flex; align-items: center; gap: 2px; color: var(--indigo); font-weight: 600; vertical-align: -2px; }
.install-hint button { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; border: 0; background: #ededf5; color: var(--indigo); font-size: 20px; line-height: 1; cursor: pointer; }
/* Installed (standalone): the top bar sits below the phone's status bar */
@media (display-mode: standalone) { .topbar { padding-top: env(safe-area-inset-top, 0px); } }

/* Every button lights up under the mouse (Amro, 11 Nov 2026): a teal ring and a touch brighter, on any colour of
   button and in every part of the site, choices included (tabs, language and role choices, plan cards, lists). Only where there is a mouse; keyboard focus keeps its own outline. */
@media (hover: hover) {
  :is(button, [role="button"], [role="tab"], [role="radio"], [role="checkbox"], [role="option"], [role="switch"], input[type="submit"], input[type="button"], input[type="reset"], a[class*="btn"], .pill-btn, select, summary, label:has(> input[type="radio"]), label:has(> input[type="checkbox"])) { transition: box-shadow .15s ease, filter .15s ease; }
  :is(button, [role="button"], [role="tab"], [role="radio"], [role="checkbox"], [role="option"], [role="switch"], input[type="submit"], input[type="button"], input[type="reset"], a[class*="btn"], .pill-btn, select, summary, label:has(> input[type="radio"]), label:has(> input[type="checkbox"])):not(:disabled):not([aria-disabled="true"]):not(:has(> input:disabled)):hover { box-shadow: 0 0 0 3px rgba(63, 194, 194, 0.45), 0 4px 14px rgba(42, 38, 87, 0.18); filter: brightness(1.05); }
}

/* Legal changes for launch (13 Nov 2026) */
.site-footer .legal { color: inherit; }
.en-only { display: none; }
html:not([lang="en"]):not([lang^="en-"]) .en-only { display: block; } /* Terms and Privacy in another language */
.en-only { margin: 0; padding: 14px 16px; border-radius: var(--radius-item); background: var(--white); border: 1px solid var(--line); }
.tile .removal { font-size: 12px; color: var(--muted); align-self: flex-start; }
.refund { margin: 0 0 12px; }
