/* Sportnote landing page – the app's look (teal, rounded, calm), light and dark */
:root {
  --bg: #f4f8f7; --card: #fff; --ink: #11201d; --muted: #5b6b68; --line: #dfe8e6; --field: #eef4f2;
  --brand: #0f9d8a; --brand-2: #0a6683; --hl: #dcf3ee;
  --grad: linear-gradient(135deg, #19c2ac, #0a6683);
  --shadow: 0 18px 50px -20px rgba(10, 60, 55, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1210; --card: #141e1c; --ink: #e8efed; --muted: #9aaba7; --line: #24312e; --field: #1b2725; --hl: #133a34;
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.wrap.narrow { max-width: 760px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 99px;
  font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn.big { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 157, 138, .7); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn.light { background: #fff; color: #0a5a6e; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.3rem; letter-spacing: -.01em; }
.brand b { color: var(--brand); }
.brand img { border-radius: 10px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .top-nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero h1 span { color: var(--muted); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.fine.center { text-align: center; margin-top: 24px; }
.hero-shots { position: relative; min-height: 420px; }
.shot { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.hero-shots .desk { width: 100%; }
.hero-shots .phone { position: absolute; width: 34%; right: -4%; bottom: -36px; border-radius: 26px; border: 6px solid #0d1716; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-shots { min-height: 0; padding-bottom: 40px; }
  .hero-shots .phone { width: 38%; right: 2%; bottom: 0; }
}

/* bands */
.band { background: var(--card); border-block: 1px solid var(--line); padding: 36px 0; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pains div { display: flex; flex-direction: column; gap: 6px; }
.pains b { font-size: 1.05rem; }
.pains span { color: var(--muted); }
@media (max-width: 800px) { .pains { grid-template-columns: 1fr; gap: 18px; } }

/* features */
section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 40em; margin: 12px auto 44px; font-size: 1.08rem; }
.features { padding: 80px 0 40px; }
.feature { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; margin: 0 0 80px; }
.feature.flip { grid-template-columns: .7fr 1.3fr; }
.feature.flip .feature-text { order: 2; }
.feature.wide { grid-template-columns: 1fr; gap: 28px; }
.feature.wide .feature-text { max-width: 760px; }
.feature .phone.solo { width: 100%; max-width: 300px; justify-self: center; border-radius: 30px; border: 7px solid #0d1716; }
.tag { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 99px; background: var(--hl); color: var(--brand); font-weight: 700; font-size: .82rem; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { padding-left: 30px; position: relative; color: var(--ink); }
.feature li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--hl)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f9d8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .feature.flip .feature-text { order: 0; }
  .feature .phone.solo { max-width: 260px; }
}
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

/* steps */
.steps-band { padding: 56px 0; }
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding-top: 54px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* pricing */
.pricing { padding: 80px 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 28px; margin: 0; padding: 3px 12px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; }
.plan h3 { font-size: 1.15rem; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; }
.per { color: var(--muted); margin: 0 0 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; flex: 1; }
.plan li::before { content: "✓  "; color: var(--brand); font-weight: 800; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* FAQ */
.faq { padding: 40px 0 80px; }
.faq h2 { margin-bottom: 28px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* final call */
.final { background: var(--grad); color: #fff; text-align: center; padding: 72px 0; }
.final h2 { color: #fff; }
.final p { margin: 14px 0 28px; font-size: 1.1rem; opacity: .92; }

/* footer */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } .final .btn { width: 100%; } }

/* header: login and trial side by side; phones: the nav folds away, "Download" stays as a link */
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-nav a[aria-current="page"] { color: var(--ink); }
.top-dl { display: none; font-weight: 700; text-decoration: none; }
@media (max-width: 720px) {
  .top-actions { margin-left: auto; }
  .top-try { display: none; }
  .top-dl { display: inline; }
}

/* download page */
.dl-hero { padding: 56px 0 8px; text-align: center; }
.dl-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.dl-hero .lead { margin: 18px auto 0; }
.dl-installed { display: inline-block; margin: 18px 0 0; padding: 10px 16px; border-radius: 12px; background: var(--hl); font-weight: 600; }
.dl-installed[hidden] { display: none; }
.dl-cards-wrap { padding: 36px 0 24px; }
.dl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); }
.dl-card.mine { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); box-shadow: var(--shadow); }
.dl-mine { display: none; position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700;
  background: var(--hl); color: var(--brand); }
.dl-card.mine .dl-mine { display: inline-block; }
.dl-icon { width: 34px; height: 34px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dl-card h2 { font-size: 1.35rem; text-align: left; }
.dl-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.dl-steps li::marker { color: var(--brand); font-weight: 700; }
.dl-inline { width: 1.1em; height: 1.1em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-note { margin: 0; color: var(--muted); font-size: .9rem; }
.dl-card .btn { width: 100%; }
.dl-card .dl-install { margin-top: auto; }
.dl-card .dl-install[hidden] { display: none; }
.dl-card .dl-install:not([hidden]) + .dl-open { margin-top: 0; }
.dl-card .dl-open { margin-top: auto; }
.dl-more { padding: 32px 0 72px; }
.dl-more h2 { margin-bottom: 18px; }
.dl-facts { margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 40em; }
.dl-facts li { padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.dl-facts b { color: var(--ink); }
.dl-cta { justify-content: center; margin-top: 28px; }
@media (max-width: 900px) { .dl-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
@media (max-width: 440px) { /* narrow phones: logo, "Download" and "Anmelden" fit side by side */
  .top-row { gap: 12px; }
  .top-actions { gap: 14px; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .top .btn { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
  .top-dl { font-size: .92rem; }
}

/* footer with columns */
.foot { border-top: 1px solid var(--line); background: var(--card); padding-top: 48px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px 28px; padding-bottom: 36px; }
.foot-brand p { margin: 12px 0 0; max-width: 22em; line-height: 1.5; }
.foot-brand .brand { font-size: 1.15rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { font-size: .78rem; text-align: left; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 4px; }
.foot-row { border-top: 1px solid var(--line); padding-top: 20px; }
/* anchors under the sticky header */
#funktionen, #preise, #fragen, #tests, #noten, #jahresplan, #mehr { scroll-margin-top: 84px; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
