/* Nochmal website. Colours match the iPhone app (Sources/Theme.swift):
   cream paper, ink black, honey accent; the logo's orange and red cards. */

:root {
  --bg: #F8F4EC;
  --bg-alt: #F3EEE4;
  --card: #FFFFFF;
  --ink: #16161A;
  --on-ink: #FFFFFF;
  --text: #16161A;
  --muted: #7A756C;
  --hairline: #DDD6C8;
  --accent: #B07A08;
  --accent-tint: #F9ECCB;
  --on-accent-tint: #7A5405;
  --logo-orange: #F28C1E;
  --logo-red: #E2311D;
  --shadow: 0 1px 2px rgb(22 22 26 / 0.04), 0 12px 32px rgb(22 22 26 / 0.08);
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121216;
    --bg-alt: #18181D;
    --card: #1E1E23;
    --ink: #F3EEE4;
    --on-ink: #16161A;
    --text: #F3EEE4;
    --muted: #9C978D;
    --hairline: #34343A;
    --accent: #E3AC35;
    --accent-tint: #3A2F12;
    --on-accent-tint: #F0C766;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--on-accent-tint);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
}

.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 9px; }

.site-nav { display: flex; gap: 22px; font-size: 0.95rem; font-weight: 550; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.flash {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--on-accent-tint);
}

.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-row nav a { color: var(--muted); }
.signed-in { display: flex; gap: 8px; align-items: center; width: 100%; }
.signed-in form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }

/* Hero */

.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 650;
  font-size: 1.15rem;
  line-height: 1.1;
}
.store-badge small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.75; }
.cta-note { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Phone mock-up: an HTML version of the translate screen, always in light colours */

.phone {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(340px, 100%);
  padding: 12px;
  border-radius: 44px;
  background: #16161A;
  box-shadow: var(--shadow), 0 30px 60px rgb(22 22 26 / 0.18);
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border-radius: 44px;
  z-index: -1;
  transform: rotate(6deg);
  background: var(--logo-orange);
}
.phone::after { background: var(--logo-red); transform: rotate(11deg); inset: 36px -30px -28px 36px; z-index: -2; }

.phone-screen {
  border-radius: 34px;
  padding: 36px 18px 22px;
  background: #F8F4EC;
  color: #16161A;
}
.phone-label { margin: 0 0 4px; color: #7A756C; font-size: 0.8rem; font-weight: 600; }
.phone-said { font-size: 0.95rem; margin-bottom: 14px; }
.sentence-card { background: #FFFFFF; border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgb(22 22 26 / 0.05); }
.sentence { font-size: 1.3rem; font-weight: 750; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.01em; }
.sentence mark { background: #F6D98A; color: inherit; border-radius: 4px; padding: 0 3px; }
.sentence-note { margin: 0; color: #7A756C; font-size: 0.8rem; }
.m { color: #2F6FDB; }
.word-list { list-style: none; margin: 0; padding: 4px 14px; background: #FFFFFF; border-radius: 16px; }
.word-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid #EEE8DC; font-size: 0.9rem; }
.word-list li:last-child { border-bottom: 0; }
.word-list span:not(.m) { color: #7A756C; font-size: 0.8rem; }
.word-list .is-selected strong { background: #F6D98A; border-radius: 4px; padding: 0 3px; align-self: flex-start; }

/* Sections */

.steps, .languages { padding: 72px 0; }
.steps { background: var(--bg-alt); border-block: 1px solid var(--hairline); }

.step-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step p { margin: 0; color: var(--muted); }
.step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--on-accent-tint);
}
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.story { padding: 88px 0; }
.story-inner { max-width: 720px; }
.story p { font-size: 1.2rem; line-height: 1.65; }

.section-lede { color: var(--muted); font-size: 1.1rem; }
.language-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.language-list li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--hairline); font-weight: 550; }

.closing { padding: 80px 0 96px; background: var(--bg-alt); border-top: 1px solid var(--hairline); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-icon { border-radius: 22px; margin-bottom: 24px; box-shadow: var(--shadow); }
.closing p { color: var(--muted); margin: 0; }

/* Privacy and support pages */

.prose { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.7em; }
.updated { color: var(--muted); font-size: 0.95rem; }
.summary {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--hairline);
  font-size: 1.05rem;
}
details { border-bottom: 1px solid var(--hairline); }
details:first-of-type { border-top: 1px solid var(--hairline); }
summary { padding: 16px 0; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: -4px 0 18px; }

/* Website sign-in (kept working; not linked from the site) */

form input[type=email] {
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}
form input[type=submit] {
  font: inherit;
  font-weight: 650;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .step-grid { grid-template-columns: 1fr; }
  .phone::before { inset: 20px -10px -12px 20px; }
  .phone::after { inset: 30px -16px -18px 30px; }
}

@media (max-width: 420px) {
  .site-nav { gap: 16px; }
  .lede, .story p { font-size: 1.08rem; }
}

address { font-style: normal; line-height: 1.6; margin: 0 0 1em; }

/* Translator vs AI chat vs Nochmal */

.compare { padding: 80px 0; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.compare-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; }
.compare-card h3 { margin-bottom: 16px; }
.compare-card ul { list-style: none; margin: 0; padding: 0; }
.compare-card li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.compare-card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.compare-card li.yes::before { content: "✓"; color: var(--accent); }
.compare-card li.no::before { content: "–"; color: var(--muted); }
.compare-card.is-us { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.compare-card.is-us li { color: var(--text); }

.story { background: var(--bg-alt); border-block: 1px solid var(--hairline); }
.story-end { font-weight: 650; }
.story-end em { color: var(--accent); font-style: normal; }

@media (max-width: 860px) {
  .compare-grid { grid-template-columns: 1fr; }
}
