/* Askra 2.0 look for crocodata.net/askra (product + download pages).
   Mirrors the app: sand with cobalt / tangerine / lilac aura glows, ink
   text and outlines, Syne 800 display type over DM Sans, glass panels with
   a white rim, and the oracle cards (Vibe cobalt, Do tangerine, paper).
   Tokens: lib/theme.dart AskraPalette in the askra repo. The legal pages
   use the same tokens through .theme-askra in /app-legal.css. */

:root {
  --sand: #EFE7DA;
  --ink: #15131C;
  --ink-soft: #4D4858;
  --ink-muted: #6D6878;
  --paper: #FFF6E8;
  --cobalt: #2448FF;
  --cobalt-text: #1F3EE0;
  --tangerine: #FF8A3D;
  --lilac: #C9B8FF;
  --mint: #7BE3A8;
  --coral: #FF9FBD;
  --gold: #C48A10;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-rim: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 40px rgba(21, 19, 28, 0.12);
  --display: 'Syne', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; }

body {
  background-color: var(--sand);
  background-image:
    radial-gradient(560px 460px at 95% -80px, rgba(36, 72, 255, 0.26), transparent 70%),
    radial-gradient(560px 520px at -120px 420px, rgba(255, 138, 61, 0.24), transparent 70%),
    radial-gradient(700px 520px at 75% 1100px, rgba(201, 184, 255, 0.36), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cobalt-text); text-underline-offset: 2px; }

/* Last resort when askra-fit.js has shrunk a heading as far as it may:
   hyphenate (in the page language) rather than spill out of the box. */
h1, h2, h3, .tier-name { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { width: 36px; height: 36px; }
.crocodata { color: var(--ink-soft); font-size: 13px; font-weight: 500; text-decoration: none; }
.crocodata:hover { color: var(--ink); }

/* ── Hero ── */
.hero { text-align: center; padding: 56px 0 40px; }
.ak-logo { width: 116px; height: 116px; margin: 0 auto 18px; display: block; animation: ak-float 6s ease-in-out infinite; }
@keyframes ak-float { 50% { transform: translateY(-8px) rotate(-3deg); } }
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 10vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}
.sub { color: var(--ink-soft); font-size: 18px; max-width: 560px; margin: 0 auto; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.badge {
  background: var(--glass);
  border: 1px solid var(--glass-rim);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Buttons: AskraButton primary (ink pill) and glass secondary. */
.store-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.store-links a, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.store-links a:hover, .cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-links a:active, .cta:active { transform: scale(.96); }
.cta-secondary { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-rim); }

/* ── Screenshot strip ── */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 28px;
  margin: 0 -24px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: 0 0 auto;
  width: 220px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  scroll-snap-align: center;
  box-shadow: var(--shadow);
  background: var(--paper);
}
@media (min-width: 1000px) { .shots { justify-content: center; } }

/* ── Glass panels ── */
.ak-summary, .legal-box, .social-box, .disclaimer, .disclaimer-card {
  background: var(--glass);
  border: 1px solid var(--glass-rim);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(21, 19, 28, 0.06);
}
.ak-summary { max-width: 620px; margin: 12px auto 24px; padding: 18px 22px; border-radius: 20px; }
.ak-summary p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

section { padding: 44px 0; }
section.wrap { padding-left: 0; padding-right: 0; }
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.05;
  margin-bottom: 22px;
}

/* ── Feature cards: the oracle deck ── */
/* Two columns at most: Syne is wide, and long German / Polish words need
   the room (askra-fit.js shrinks whatever still doesn't fit). */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 24px 22px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.grid .card:hover { transform: translateY(-4px) rotate(-1deg); }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; margin-bottom: 10px; }
.card p { font-size: 14.5px; line-height: 1.6; }
.grid .card:nth-of-type(1) { background: var(--cobalt); color: #fff; }
.grid .card:nth-of-type(1) p { color: rgba(255, 255, 255, .88); }
.grid .card:nth-of-type(2) { background: var(--tangerine); }
.grid .card:nth-of-type(3) { background: var(--paper); }
.grid .card:nth-of-type(4) { background: var(--lilac); }
.grid .card:nth-of-type(n+2) p { color: var(--ink); opacity: .82; }

/* ── Plans ── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tier { background: var(--glass); border: 1px solid var(--glass-rim); box-shadow: none; }
.tier-name { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.tier-price { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; margin-top: 4px; }
.tier ul { list-style: none; margin-top: 14px; }
.tier li { font-size: 14.5px; padding: 6px 0 6px 24px; position: relative; color: var(--ink-soft); }
.tier li::before { content: '✦'; position: absolute; left: 0; top: 6px; color: var(--tangerine); font-size: 13px; }
.tier.cosmic { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.tier.cosmic .tier-price, .tier.cosmic li { color: rgba(255, 246, 232, .82); }
.tier.cosmic li::before { color: #F2C14E; }

/* ── Disclaimers and safeguards ── */
.disclaimer { color: var(--ink-soft); font-size: 14px; border-radius: 20px; padding: 18px 22px; text-align: center; }
.disclaimer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.disclaimer-card { border-radius: 20px; padding: 20px; }
.disclaimer-card h3 { font-family: var(--display); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.disclaimer-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }

/* ── Social + legal ── */
.social-box, .legal-box { border-radius: 28px; padding: 28px; margin-top: 32px; }
.social-box { text-align: center; }
.social-box h2, .legal-box h2 { font-size: 22px; margin-bottom: 8px; }
.social-box p, .legal-note { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.social-links, .legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links { justify-content: center; }
.social-links a, .legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.social-links a:hover, .legal-links a:hover { background: var(--ink); color: var(--paper); }
.social-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.legal-links { margin-bottom: 14px; }
.legal-contact { color: var(--ink-soft); font-size: 13px; }

footer {
  padding: 32px 0 44px;
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}
footer a { margin: 0 6px; color: var(--ink); font-weight: 600; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .shots { padding: 8px 16px 24px; margin: 0 -16px; }
  .shots img { width: 190px; }
  .hero { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ak-logo { animation: none; }
  .card, .store-links a, .cta { transition: none; }
}

/* ── Download page (get.html) ── */
.get-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 16px 48px; }
.get-content { max-width: 440px; width: 100%; text-align: center; }
.get-content .wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.get-content h1 { font-size: clamp(34px, 9vw, 48px); }
.cta-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.cta { width: 100%; }
.get-content footer { border-top: none; margin-top: 28px; padding: 0; }
