/* myScoresKeeper site: the same layout as the Tairi site, in this app's blue and pink
   (src/shared/utils/teamColors.ts). System fonts only, so the page makes no requests to other servers. */
:root {
  --bg: #eaf4ff;
  --ink: #0f1b2d;
  --card: #ffffff;
  --muted: #4a5a70;
  --blue: #2196f3;
  --pink: #ec4899;
  --honey: #ffd27a;
  --mint: #9fe3c8;
  --lilac: #c8a2ff;
  --line: 2.5px solid var(--ink);
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.1; font-weight: 900; text-wrap: balance; overflow-wrap: break-word; }
a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--pink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
}

/* One language at a time (lang.js sets data-lang on <html>). Without JavaScript both show. */
html[data-lang="en"] [data-lang="el"],
html[data-lang="el"] [data-lang="en"],
html[data-lang] .no-js { display: none; }
html:not([data-lang]) .picker { display: none; }

/* ---------- Header bar ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 10px 12px 10px 10px;
  border: var(--line); border-radius: 999px; background: var(--card);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.logo { width: 40px; height: 40px; border-radius: 12px; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.nav a { padding: 8px 10px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.nav a:hover { background: var(--honey); }

.picker { display: inline-flex; gap: 2px; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg); }
.picker button {
  font: 800 .85rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: none; border: 0; border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.picker button[aria-pressed="true"] { background: var(--ink); color: var(--card); }

/* ---------- Shared pieces ---------- */
.sticker {
  display: inline-block; padding: 6px 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--honey);
  font-weight: 900; font-size: .8rem; line-height: 1.3; transform: rotate(-2deg);
}
.h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -.04em; margin-top: 18px; }
.h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1; letter-spacing: -.03em; }
.hl { background: var(--pink); color: var(--card); padding: 0 .12em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sec { padding-block: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: var(--line); border-radius: 16px; padding: 12px 20px;
  font-weight: 900; background: var(--blue); color: var(--card); text-decoration: none;
  transition: background-color .12s;
}
.btn:hover { background: var(--honey); color: var(--ink); }

/* ---------- Home ---------- */
.hero { padding-block: 48px 24px; display: grid; gap: 14px; justify-items: start; }
.lede { font-size: 1.2rem; font-weight: 600; max-width: 44ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.btn-ghost { background: var(--card); color: var(--ink); }
.sub { font-weight: 600; color: var(--muted); margin-top: 8px; }

/* Hero with the phone beside the copy */
.hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 28px; justify-items: stretch; }
.hero-copy { display: grid; gap: 14px; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips li { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; background: var(--card); font-weight: 800; font-size: .88rem; }
.phone { display: block; width: 100%; height: auto; border: var(--line); border-radius: 28px; background: var(--card); box-shadow: 6px 6px 0 var(--ink); }
.hero-shot { transform: rotate(2deg); max-width: 300px; justify-self: center; }

/* Features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.feat { border: var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--card); }
.feat:nth-child(5n+1) { background: var(--honey); }
.feat:nth-child(5n+2) { background: var(--mint); }
.feat:nth-child(5n+3) { background: var(--lilac); }
.feat:nth-child(5n+4) { background: #ffc2dd; }
.feat h3 { font-size: 1.08rem; line-height: 1.25; }
.feat p { font-size: .94rem; font-weight: 600; }

/* Screenshots: a strip that scrolls sideways */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 8px 18px 2px; margin-top: 4px;
}
.shots li { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.shots p { font-weight: 800; font-size: .9rem; line-height: 1.3; }

/* Accordions (help and FAQ); <details> works without JavaScript */
.acc { display: grid; gap: 10px; margin-top: 20px; min-width: 0; }
.acc details { border: var(--line); border-radius: 18px; background: var(--card); }
.acc summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 900; font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--honey); line-height: 1; }
.acc details[open] summary::after { content: "−"; background: var(--mint); }
.acc summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 16px; }
.acc details p { padding: 0 18px 16px; max-width: 72ch; }
.acc details h4 { margin: 0; padding: 0 18px 4px; font-size: 1rem; font-weight: 900; }
.acc details ul, .acc details ol { padding: 0 18px 16px 40px; max-width: 72ch; }
.acc details ul { list-style: disc; }
.acc details ol { list-style: decimal; }
.acc details li + li { margin-top: 6px; }

/* Call to action band */
.band { margin-block: 24px; border: var(--line); border-radius: 28px; background: var(--blue); color: var(--card); padding: 32px 24px; display: grid; gap: 10px; justify-items: start; }
.band p { font-weight: 700; font-size: 1.08rem; }
.band .btn { background: var(--card); color: var(--ink); }
.band .btn:hover { background: var(--honey); }

/* FAQ with the contact card beside it */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.contact { position: sticky; top: 16px; margin-top: 20px; border: var(--line); border-radius: 22px; background: var(--honey); padding: 20px; display: grid; gap: 10px; }
.contact h3 { font-size: 1.2rem; }
.contact p { font-weight: 600; }
.contact .btn { font-size: .92rem; word-break: break-all; }

/* ---------- Footer ---------- */
footer { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 36px; font-weight: 700; font-size: .9rem; }
footer .copy { flex-basis: 100%; font-size: .85rem; opacity: .8; }

/* ---------- Privacy policy ---------- */
.langs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-weight: 700; }
.p-hero { padding-block: 44px 28px; display: grid; gap: 14px; justify-items: start; }
.p-hero .h1 { margin-top: 4px; }
.p-meta { font-weight: 700; color: var(--muted); }
.p-intro { font-size: 1.12rem; font-weight: 600; max-width: 62ch; }
.p-contact { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px; background: var(--card); font-weight: 700; }
.p-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 32px 8px; }
.toc { position: sticky; top: 16px; border: var(--line); border-radius: 22px; background: var(--card); padding: 16px; display: grid; gap: 2px; }
.toc h2 { font-size: .78rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px 10px; }
.toc a { padding: 7px 10px; border-radius: 12px; font-weight: 700; font-size: .92rem; line-height: 1.3; text-decoration: none; }
.toc a:hover { background: var(--honey); }
.p-secs { display: grid; gap: 16px; min-width: 0; }
.p-sec { border: var(--line); border-radius: 24px; background: var(--card); padding: 24px; display: grid; gap: 12px; scroll-margin-top: 16px; }
.p-sec h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.15; letter-spacing: -.02em; display: flex; gap: 12px; align-items: center; }
.p-sec h2::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: var(--line); background: var(--blue); }
.p-sec:nth-child(4n+2) h2::before { background: var(--pink); }
.p-sec:nth-child(4n+3) h2::before { background: var(--honey); }
.p-sec:nth-child(4n+4) h2::before { background: var(--mint); }
.p-sec h3 { font-size: 1.05rem; line-height: 1.25; }
.p-sec p, .p-sec li { max-width: 70ch; }
.p-sec ul { display: grid; gap: 10px; }
.p-sec li { position: relative; padding-left: 24px; }
.p-sec li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--honey); }
.p-sec table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.p-sec th, .p-sec td { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--ink); vertical-align: top; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { position: static; margin-top: 0; }
}
@media (max-width: 700px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { max-width: 240px; }
}
@media (max-width: 760px) {
  .p-layout { grid-template-columns: minmax(0, 1fr); }
  .top { border-radius: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc h2 { flex-basis: 100%; padding: 2px 4px 6px; }
  .toc a { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
  .p-sec { padding: 20px; }
}
@media (max-width: 480px) {
  .feats { grid-template-columns: minmax(0, 1fr); }
}
