/* Fishcards landing page. Colors follow docs/ui-style.md: Blue preset gradient, fixed article colors, glass. */
/* Nunito (SIL OFL, fonts/OFL.txt), self-hosted so the page makes no third-party requests. */
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(fonts/nunito-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(fonts/nunito-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --blue-top: #5b9bff;
  --blue-bottom: #2a55c9;
  --ink: #1c2230;
  --ink-2: #4a5468;
  --paper: #f4f7ff;
  --der: #e5394f;
  --die: #3b7bf0;
  --das: #1fae5b;
  --r-red: #ef3e5c;
  --r-amber: #f6a91b;
  --r-green: #22b35e;
  --r-blue: #3b7bf0;
  --radius: 28px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  color: #fff;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.brand img { border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.lang-switch {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lang-switch button {
  font: inherit; font-weight: 800; font-size: .85rem; color: #fff; cursor: pointer;
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, html.light .theme-toggle .moon { display: none; }
html.light .theme-toggle .sun { display: block; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--blue-bottom); }

/* Hero */
.hero {
  color: #fff;
  background: linear-gradient(170deg, var(--blue-top) 0%, var(--blue-bottom) 100%);
  padding: calc(120px + env(safe-area-inset-top)) 0 96px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: .9rem; letter-spacing: .02em;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 .hl {
  background: linear-gradient(90deg, #ffe66b, #ffb44d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 22px 0 30px; max-width: 34em; opacity: .95; }

.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 182px; height: 58px; padding: 0 20px 0 16px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; border: 1px solid #a6a6a6;
  box-shadow: 0 8px 24px rgba(10, 20, 60, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 20, 60, .38); }
.store-badge:focus-visible { outline: 3px solid #ffe66b; outline-offset: 3px; }
.store-badge { white-space: nowrap; text-align: left; }
.store-badge svg { width: 30px; height: 30px; flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.05; font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; }
.badge-text small { font-size: .72rem; font-weight: 500; letter-spacing: .01em; }
.badge-text strong { font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.soon-note { margin: 16px 0 0; font-weight: 700; opacity: .92; }

/* Phones with real app screenshots; the light or dark set follows the page theme. */
.shot-light, html.light .shot-dark { display: none !important; }
html.light .shot-light { display: block !important; }
.phone {
  position: relative; width: 290px; padding: 11px; border-radius: 50px; background: #0f1525;
  box-shadow: 0 30px 70px rgba(5, 15, 60, .45), inset 0 0 0 2px #2b3450;
}
.phone::after { /* Dynamic Island */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 24px; border-radius: 999px; background: #000;
}
.phone-screen { border-radius: 40px; overflow: hidden; background: #0b1028; }
.phone-screen img { width: 100%; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.phone-main { z-index: 2; transform: rotate(2deg); }
.phone-back { position: absolute; z-index: 1; width: 230px; opacity: .97; }
.phone-back::after { top: 18px; height: 19px; }
.phone-back .phone-screen { border-radius: 32px; }
.phone-left { left: -10px; top: 70px; transform: rotate(-9deg); }
.phone-right { right: -10px; bottom: 30px; transform: rotate(9deg); }

/* Method ("flashcards, reinvented") */
.method { padding: 96px 0 0; text-align: center; }
.method .pill { background: linear-gradient(170deg, var(--blue-top), var(--blue-bottom)); color: #fff; }
.method-list { list-style: none; padding: 0; margin: 44px auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; text-align: left; }
.method-list li { display: flex; gap: 16px; align-items: flex-start; }
.method-list .check {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(170deg, #4ade80, #15803d); color: #fff; font-weight: 900; margin-top: 2px;
}
.method-list h3 { font-size: 1.2rem; margin: 0 0 4px; }
.method-list p { margin: 0; color: var(--ink-2); }

/* Screens gallery */
.screens { padding: 0 0 96px; }
.shot-row {
  display: flex; gap: 28px; justify-content: safe center; margin-top: 48px;
  padding: 10px 20px 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.shot-row::-webkit-scrollbar { display: none; }
.shot { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.shot .phone { width: 210px; padding: 8px; border-radius: 36px; box-shadow: 0 18px 40px rgba(5, 15, 60, .3), inset 0 0 0 2px #2b3450; }
.shot .phone::after { top: 15px; height: 17px; }
.shot .phone-screen { border-radius: 29px; }
.shot figcaption { margin-top: 16px; font-weight: 800; }

/* Sections */
section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-align: center; }
.section-lead { text-align: center; color: var(--ink-2); font-size: 1.1rem; margin: 14px auto 0; max-width: 36em; }

.features { padding: 96px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 0 rgba(20, 40, 100, .05), 0 12px 32px rgba(20, 40, 100, .08);
}
.feature h3 { font-size: 1.25rem; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--ink-2); }
.t-der { color: var(--der); } .t-die { color: var(--die); } .t-das { color: var(--das); }
.ficon { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; }
.ficon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-sunset { background: linear-gradient(170deg, #ff9a5a, #e2475d); }
.c-sea { background: linear-gradient(170deg, #2dd4bf, #0e7c86); }
.c-violet { background: linear-gradient(170deg, #a78bfa, #5b3fd1); }
.c-green { background: linear-gradient(170deg, #4ade80, #15803d); }
.c-orange { background: linear-gradient(170deg, #fbbf24, #d9480f); }
.c-pink { background: linear-gradient(170deg, #f472b6, #be185d); }

.steps { padding: 0 0 96px; }
.step-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-list li { text-align: center; padding: 8px 18px; }
.step-list .num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(170deg, var(--blue-top), var(--blue-bottom)); color: #fff;
  font-weight: 900; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(42, 85, 201, .35);
}
.step-list h3 { font-size: 1.25rem; margin: 16px 0 6px; }
.step-list p { margin: 0; color: var(--ink-2); }

.slogan {
  color: #fff; text-align: center; padding: 90px 0;
  background: linear-gradient(170deg, #4b1d8f 0%, #b0307a 38%, #ef6b3a 72%, #f7b733 100%);
}
.slogan blockquote { margin: 0 auto; max-width: 18em; font-size: clamp(1.8rem, 4.4vw, 3.1rem); font-weight: 900; line-height: 1.15; }
.slogan blockquote::before { content: "„"; }
.slogan blockquote::after { content: "”"; }
html[lang="en"] .slogan blockquote::before { content: "“"; }
.slogan p { margin: 22px 0 0; font-size: 1.15rem; font-weight: 700; opacity: .95; }

.coming {
  padding: 90px 0;
  background: linear-gradient(170deg, #2dd4bf 0%, #0e7c86 100%);
}
.glass {
  max-width: 760px; margin: 0 auto; text-align: center; color: #fff;
  padding: 44px 36px; border-radius: 34px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(0, 50, 60, .25);
}
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #fff; color: #0e7c86; font-weight: 900; font-size: .85rem; margin-bottom: 16px; }
.glass p { margin: 14px 0 0; font-size: 1.1rem; opacity: .95; }

.contact { padding: 90px 0; text-align: center; }
.contact p { color: var(--ink-2); font-size: 1.1rem; max-width: 32em; margin: 14px auto 26px; }
.mail {
  display: inline-block; text-decoration: none; font-weight: 900; font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: #fff; padding: 16px 30px; border-radius: 22px;
  background: linear-gradient(170deg, var(--blue-top), var(--blue-bottom));
  box-shadow: 0 12px 28px rgba(42, 85, 201, .35);
  transition: transform .15s ease;
}
.mail:hover { transform: translateY(-2px); }

.footer { background: #0b1435; color: rgba(255, 255, 255, .78); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #0b1435; color: #fff; font-weight: 800; padding: 14px 22px; border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .3); transition: opacity .25s, transform .25s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Simple page (privacy) */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page .hero { padding-bottom: 70px; }
.page .hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-body { flex: 1; padding: 60px 0 90px; }
.page-body .box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: 0 12px 32px rgba(20, 40, 100, .08); font-size: 1.1rem; }
.page-body .box p { margin: 0 0 16px; color: var(--ink-2); }
.page-body .box a { color: var(--blue-bottom); font-weight: 800; }

/* Dark look is the default (Marek 2026-12-05); the sun/moon button sets html.light, remembered per browser. */
html:not(.light) { color-scheme: dark; --ink: #eef2fb; --ink-2: #aab4cc; --paper: #0b1028; }
html:not(.light) .hero { background: linear-gradient(170deg, #1a2a7a 0%, #080d33 100%); }
html:not(.light) .feature, html:not(.light) .page-body .box { background: #151c3d; box-shadow: none; border: 1px solid rgba(255, 255, 255, .07); }
html:not(.light) .slogan { background: linear-gradient(170deg, #2a1057 0%, #6e1d4c 38%, #94401f 72%, #9a6f1c 100%); }
html:not(.light) .coming { background: linear-gradient(170deg, #0f6e66 0%, #06363d 100%); }
html:not(.light) .footer { background: #050817; }
html:not(.light) .page-body .box a { color: #8fb4ff; }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { height: 64px; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding: calc(96px + env(safe-area-inset-top)) 0 64px; }
  .badges { gap: 10px; flex-wrap: nowrap; }
  .store-badge { min-width: 0; flex: 1 1 0; justify-content: center; height: 54px; padding: 0 10px; gap: 8px; }
  .store-badge svg { width: 26px; height: 26px; }
  .badge-text strong { font-size: 1.12rem; }
  .badge-text small { font-size: .66rem; }
  .hero-visual { min-height: 0; padding: 20px 0; }
  .phone-main { width: 240px; padding: 9px; border-radius: 42px; }
  .phone-main .phone-screen { border-radius: 33px; }
  .phone-main::after { top: 18px; height: 20px; }
  .phone-back { width: 170px; padding: 7px; border-radius: 30px; }
  .phone-back .phone-screen { border-radius: 24px; }
  .phone-back::after { top: 13px; height: 14px; }
  .phone-left { left: -36px; top: 60px; }
  .phone-right { right: -36px; bottom: 30px; }
  .method { padding-top: 64px; }
  .method-list { grid-template-columns: 1fr; margin-top: 32px; }
  .shot-row { justify-content: flex-start; gap: 18px; margin-top: 32px; }
  .screens { padding-bottom: 64px; }
  .features, .contact, .coming, .slogan { padding: 64px 0; }
  .steps { padding-bottom: 64px; }
  .grid, .step-list { grid-template-columns: 1fr; gap: 16px; }
  .grid { margin-top: 36px; }
  .step-list { margin-top: 32px; }
  .feature { padding: 24px; }
  .glass { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
