/* Dami — dami.loam.sk
   Palette + type pulled from .asc/marketing.yaml so the site matches
   the App Store imagery: mint gradient (#E8F8F3 → #37B99B), deep green
   ink (#0B4A3F), orange accent from the app icon. System fonts only,
   no external requests. The hero pair card is a real, working
   converter demo (see main.js) — arithmetic included, like the app. */

:root {
  --mint: #37b99b;
  --mint-soft: #e8f8f3;
  --green: #0e8c6d;
  --green-deep: #0b4a3f;
  --orange: #e8820c;
  --teal: #2aa7b8;
  --indigo: #6a67e8;
  --ink: #0b2e27;
  --ink-dim: rgba(11, 46, 39, 0.62);
  --ink-faint: rgba(11, 46, 39, 0.42);
  --bg: #f7fcfa;
  --card: #ffffff;
  --line: rgba(11, 74, 63, 0.12);
  --line-soft: rgba(11, 74, 63, 0.08);
  --max: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --sans: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .privacy-page a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 140, 109, 0.4); }
p a:hover, .privacy-page a:hover { text-decoration-color: currentColor; }

::selection { background: rgba(55, 185, 155, 0.35); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------
   Top bar — an iOS-flavored nav. The right-hand ticker cycles
   through conversion pairs like the app's pair list.
---------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 252, 250, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar__app {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: 10px;
}
.topbar__app img { width: 22px; height: 22px; border-radius: 6px; }
.topbar__nav { display: flex; gap: 2px; }
.topbar__nav a {
  font-size: 13.5px;
  color: var(--ink-dim);
  padding: 5px 11px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.topbar__nav a:hover { background: rgba(11, 74, 63, 0.08); color: var(--ink); }
.topbar__ticker {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.topbar__ticker.is-fading { opacity: 0; }

/* ---------------------------------------------------------------
   Hero — the marketing-screenshot gradient, with a live pair card
---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1000px 640px at 84% -12%, rgba(255, 214, 156, 0.5), transparent 58%),
    radial-gradient(900px 700px at 0% 112%, rgba(10, 90, 72, 0.32), transparent 55%),
    linear-gradient(168deg, #eaf9f4 0%, #b9e8d8 42%, #37b99b 100%);
  margin-top: -48px; /* gradient runs underneath the translucent top bar */
  padding-top: 48px;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 74, 63, 0.65);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--green-deep);
}
.hero h1 .grad {
  background: linear-gradient(92deg, #0a9573 5%, var(--orange) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(11, 58, 48, 0.8);
  max-width: 52ch;
}
.hero__cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.hero__cta .badge-store img { height: 54px; width: auto; }
.hero__cta .badge-store {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.hero__cta .badge-store:hover { transform: translateY(-2px); }
.link-more {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--green-deep);
  border-bottom: 1px solid rgba(11, 74, 63, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.link-more:hover { border-color: var(--green-deep); }
.hero__trust {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(11, 74, 63, 0.6);
  letter-spacing: 0.02em;
}
.hero__trust b { color: var(--green-deep); font-weight: 600; }

/* --- the pair card, rebuilt from the app's pair list — and it works --- */
.hero__demo { display: flex; justify-content: center; }
.phone-card {
  width: min(400px, 100%);
  background: var(--card);
  border-radius: 26px;
  padding: 8px 20px;
  box-shadow:
    0 2px 4px rgba(11, 74, 63, 0.12),
    0 30px 70px rgba(11, 74, 63, 0.35);
}
.pair { padding: 16px 0 14px; }
.pair + .pair { border-top: 1px solid var(--line-soft); }
.pair__head { display: flex; align-items: center; gap: 8px; }
.pair__codes { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; }
.pair__arrow { color: var(--ink-faint); font-weight: 400; }
.flag { font-size: 15px; }
.pair__swap {
  margin-left: auto;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  background: rgba(55, 185, 155, 0.14);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.3s var(--ease);
  font-family: var(--sans);
}
.pair__swap:hover { background: rgba(55, 185, 155, 0.26); }
.pair__swap:active { transform: rotate(180deg); }
.pair__row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pair__amount {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.pair__amount .cur { font-size: 20px; color: var(--ink-faint); }
.pair__amount input {
  border: 0;
  border-bottom: 2px dashed rgba(11, 74, 63, 0.25);
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 9ch;
  min-width: 5ch;
  padding-bottom: 1px;
  font-variant-numeric: tabular-nums;
}
.pair__amount input:focus { outline: none; border-bottom-color: var(--mint); }
.pair__amount input.is-invalid { border-bottom-color: var(--orange); }
.pair__result {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pair--live .pair__result { color: var(--green-deep); }
.opkeys {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.opkeys button {
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green-deep);
  background: #eef4f1;
  box-shadow: 0 1px 0 rgba(11, 74, 63, 0.18);
  transition: background 0.12s ease, transform 0.12s ease;
  font-family: var(--sans);
}
.opkeys button:hover { background: #e2ece7; }
.opkeys button:active { transform: translateY(1px); box-shadow: none; }
.opkeys__hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.opkeys__hint b { color: var(--ink-dim); font-weight: 600; }
.phone-card__foot {
  border-top: 1px solid var(--line-soft);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fresh-pill, .stale-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(55, 185, 155, 0.14);
  white-space: nowrap;
}
.stale-pill { margin-top: 14px; color: #b06400; background: rgba(232, 130, 12, 0.13); }
.phone-card__note { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); text-align: right; }

/* entrance — once, on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy { animation: rise 0.7s var(--ease) both; }
  .hero__demo { animation: rise 0.8s 0.15s var(--ease) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------------------------------------------------------------
   Statement band — the definitional line, for humans and answer engines
---------------------------------------------------------------- */
.statement {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(55, 185, 155, 0.1), rgba(55, 185, 155, 0.02) 70%, transparent);
}
.statement p {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  text-wrap: balance;
}
.statement .quiet { color: var(--ink-dim); font-weight: 400; }

/* ---------------------------------------------------------------
   Sections
---------------------------------------------------------------- */
.section { padding: 104px 0; }
.section--tight { padding-top: 88px; }
.section__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.section__title {
  margin-top: 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--green-deep);
}
.section__lede {
  margin-top: 14px;
  font-size: 17.5px;
  color: var(--ink-dim);
  max-width: 62ch;
}

/* ---------------------------------------------------------------
   Features — 6-col bento; the two wide cards carry demos
---------------------------------------------------------------- */
.features { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.feature {
  grid-column: span 2;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 74, 63, 0.22);
  box-shadow: 0 14px 34px rgba(11, 74, 63, 0.1);
}
.feature--wide { grid-column: span 4; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.feature__glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 140, 109, 0.12);
  color: var(--green);
  margin-bottom: 16px;
}
.feature__glyph--teal { background: rgba(42, 167, 184, 0.12); color: var(--teal); }
.feature__glyph--indigo { background: rgba(106, 103, 232, 0.12); color: var(--indigo); }
.feature__glyph--orange { background: rgba(232, 130, 12, 0.12); color: var(--orange); }
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 7px; font-size: 15px; line-height: 1.5; color: var(--ink-dim); }
.feature p b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.feature__body { min-width: 220px; flex: 1; }

/* math demo inside the "Does your math" card */
.feature__demo-math {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--mint-soft);
  border: 1px solid rgba(55, 185, 155, 0.3);
  border-radius: var(--radius);
}
.feature__demo-math .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 74, 63, 0.18);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
}
.feature__demo-math .eq {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.feature__demo-math .eq i { font-style: normal; color: var(--ink-faint); }

/* mini widget mock inside the widgets card */
.widget-mini {
  width: 200px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f2fbf8, #d8f2e9);
  border: 1px solid rgba(55, 185, 155, 0.35);
  box-shadow: 0 10px 26px rgba(11, 74, 63, 0.14);
}
.widget-mini__head { font-size: 12px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink-dim); }
.widget-mini__nums { margin-top: 8px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.widget-mini__nums span { font-size: 14px; color: var(--ink-dim); }
.widget-mini__nums b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--green-deep); }
.widget-mini__age { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); }

/* ---------------------------------------------------------------
   Screenshots — horizontal snap strip of the App Store renders
---------------------------------------------------------------- */
.shots {
  margin-top: 44px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 74, 63, 0.25) transparent;
}
.shot {
  margin: 0;
  flex: 0 0 auto;
  width: min(300px, 74vw);
  scroll-snap-align: center;
}
.shot img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(11, 74, 63, 0.18);
}
.shot figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------
   Privacy callout
---------------------------------------------------------------- */
.privacy-card {
  border-radius: 24px;
  border: 1px solid rgba(14, 140, 109, 0.25);
  background:
    radial-gradient(640px 320px at 12% 0%, rgba(55, 185, 155, 0.12), transparent 65%),
    var(--card);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
}
.privacy-card .section__eyebrow { color: var(--green); }
.privacy-card blockquote {
  margin-top: 18px;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 48ch;
  text-wrap: pretty;
}
.privacy-card blockquote .quiet { color: var(--ink-dim); font-weight: 400; }
.privacy-card .link-more { margin-top: 26px; display: inline-block; }

/* ---------------------------------------------------------------
   FAQ
---------------------------------------------------------------- */
.faq { margin-top: 36px; border-top: 1px solid var(--line-soft); max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 2px;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-faint);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 24px 2px; color: var(--ink-dim); font-size: 15.5px; max-width: 66ch; }
.faq summary:hover { color: var(--green); }

/* ---------------------------------------------------------------
   From the same studio
---------------------------------------------------------------- */
.studio-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.studio-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.studio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 74, 63, 0.22);
  box-shadow: 0 14px 34px rgba(11, 74, 63, 0.1);
}
.studio-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(11, 74, 63, 0.18);
}
.studio-card h3 { font-size: 16.5px; font-weight: 600; }
.studio-card p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-dim); }
.studio-card .pill {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}
.studio-card--journeybot .pill { background: #ff5733; }
.studio-card--kahudo .pill { background: #3f51b5; }
.studio-card--timo .pill { background: #4da3ff; }
.studio-card--hotspot .pill { background: #0088ff; }

/* ---------------------------------------------------------------
   Footer
---------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.footer__brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer__links { display: flex; gap: 24px; font-size: 13.5px; color: var(--ink-dim); flex-wrap: wrap; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-size: 13px; color: var(--ink-faint); }

/* ---------------------------------------------------------------
   Privacy page
---------------------------------------------------------------- */
.privacy-page { max-width: 720px; margin: 0 auto; padding: 88px 24px 120px; }
.privacy-page h1 { font-size: clamp(30px, 4.5vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--green-deep); }
.privacy-page .updated {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.privacy-page h2 { margin-top: 44px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; color: var(--green-deep); }
.privacy-page p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: rgba(11, 46, 39, 0.85); }
.privacy-page .lead { font-size: 20px; font-weight: 500; color: var(--ink); margin-top: 36px; }
.privacy-page .back { margin-top: 48px; display: inline-block; }

/* ---------------------------------------------------------------
   Scroll reveal — pure CSS, progressive enhancement
---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature, .studio-card, .shot {
      animation: reveal both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes reveal {
      from { opacity: 0.2; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

/* ---------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; padding-top: 60px; padding-bottom: 76px; }
  .hero__demo { justify-content: flex-start; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .topbar__ticker { display: none; }
}
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .section { padding: 72px 0; }
  .statement p { padding: 56px 24px; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature--wide { grid-column: span 1; }
  .hero__cta { gap: 18px; }
  .studio-grid { grid-template-columns: 1fr; }
  .opkeys__hint { display: none; }
}
