/* Galdr — site styles. No external fonts, trackers, or frameworks. */

:root {
  /* One light theme: a barely warm white, like good paper, with the
     magenta-to-teal of the Galdr mark as the only colour. */
  color-scheme: light;
  --bg: #fbf9f5;
  --bg-raised: #fffefc;
  --bg-alt: #f6f2ec;
  --bg-card: #fffefc;
  --border: rgba(58, 44, 24, 0.1);
  --text: #1d1a16;
  --text-2: #57504a;
  --text-3: #8a8178;
  --pink: #e8399e;
  --violet: #9d5aa9;
  --teal: #1fa3a3;
  --brand: linear-gradient(90deg, #ec3a9f 0%, #a65ba9 52%, #20a7a6 100%);
  --accent: #bd2f80;
  --accent-2: #13807f;
  --accent-soft: rgba(232, 57, 158, 0.08);
  --teal-soft: rgba(31, 163, 163, 0.1);
  --good: #13807f;
  --radius: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

/* ---- Navigation ---- */

.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links .optional { display: none; } }

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font: 600 16px/1 var(--font); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 22px rgba(201, 60, 140, 0.25);
}
.btn-secondary { color: var(--text); background: var(--bg-card); border-color: var(--border); }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }

/* ---- Hero ---- */

.hero { padding: 80px 0 72px; text-align: center; overflow-x: clip; }
.hero-mark { width: 92px; height: 92px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box, var(--brand) border-box;
  border: 1px solid transparent;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  margin: 22px auto 18px; max-width: 820px;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em;
}
.gradient {
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: 20px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 14px; }
.fine { color: var(--text-3); font-size: 14px; }
.release-note { color: var(--text-3); font-size: 14px; margin-top: 6px; }

/* ---- Sections ---- */

section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--accent-2); font-weight: 650; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 8px 0 14px; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lede { color: var(--text-2); max-width: 680px; font-size: 18px; margin: 0 0 36px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--text-2); margin: 0 0 10px; }
.card ul { color: var(--text-2); margin: 8px 0 0; padding-left: 20px; }
.card li { margin: 4px 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--pink); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.req { color: var(--text-3); font-size: 14px; margin-top: 12px; }

/* ---- Screenshots ----
   Every window is shown at about 85–90% of its real size, so text reads
   the same everywhere. Tall windows are cropped to what matters and fade
   out at the bottom; the shadow follows the cropped shape. */

figure { margin: 0; }
figcaption { color: var(--text-3); font-size: 14px; margin-top: 18px; text-align: center; }

.shot { display: block; filter: drop-shadow(0 22px 40px rgba(58, 44, 24, 0.18)) drop-shadow(0 2px 6px rgba(58, 44, 24, 0.08)); }
.shot-frame { filter: drop-shadow(0 22px 40px rgba(58, 44, 24, 0.16)) drop-shadow(0 2px 6px rgba(58, 44, 24, 0.07)); }
.crop {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.crop img { display: block; width: 100%; height: auto; }
/* Header, overview, decisions, and action items of the summary. */
.crop-hero { aspect-ratio: 1583 / 1120; }
/* The list and the open lecture, without the empty lower half. */
.crop-history { aspect-ratio: 1800 / 1000; }
/* The column titles and the first several turns. */
.crop-translation { aspect-ratio: 1800 / 1030; }

/* Hero: a slice of the menu bar across the top, Galdr's popover hanging
   from its icon in the bar, as on a Mac, and the meeting window. The icon
   sits exactly over the popover's arrow, 41.3% across the popover image.
   --menu-left and --menu-width place the popover, --bar-in and --bar-w the
   bar, all in fractions of the window's width.

   Wide screens: the popover stands right of the window, touching only
   its edge. Narrower: it hangs centered and the window sits below it. */
.hero-shot {
  --menu-left: 0.97;
  --menu-width: 0.55;
  --bar-in: 0.04;
  --bar-w: 1.6;
  position: relative; max-width: 720px; margin: 64px auto 0; padding-top: 50px;
}
@media (min-width: 1241px) { .hero-shot { left: -26%; } }

.menubar {
  position: absolute; top: 0; left: calc(var(--bar-in) * -100%); width: calc(var(--bar-w) * 100%); height: 30px;
  border-radius: 10px; color: rgba(255, 255, 255, 0.92);
  background: rgba(30, 28, 34, 0.9);
  box-shadow: 0 10px 30px rgba(58, 44, 24, 0.16);
}
.menubar > * {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  --icon: calc((var(--menu-left) + 0.413 * var(--menu-width) + var(--bar-in)) / var(--bar-w) * 100%);
}
.mb-glyph { width: 16px; height: 16px; }
.mb-battery { width: 24px; height: 12px; }
.mb-galdr {
  left: var(--icon);
  width: 28px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.22);
}
.mb-galdr img { width: 16px; height: 16px; display: block; }
.mb-wifi { left: calc(var(--icon) - 74px); }
.mb-battery { left: calc(var(--icon) - 42px); }
.mb-clock { left: calc(var(--icon) + 70px); font-size: 13px; font-weight: 500; white-space: nowrap; }

.hero-shot .shot-menu {
  position: absolute; z-index: 1; top: 31px;
  left: calc(var(--menu-left) * 100%); width: calc(var(--menu-width) * 100%);
}

@media (max-width: 1240px) {
  .hero-shot { --menu-left: 0.2; --menu-width: 0.6; --bar-in: 0; --bar-w: 1; padding-top: 30px; }
  .hero-shot .shot-menu {
    position: relative; top: 0; left: auto; margin: 1px 0 0 calc(var(--menu-left) * 100%);
  }
  .hero-shot .shot-frame { position: relative; margin-top: -44px; }
}
@media (max-width: 640px) {
  .hero-shot { --menu-left: 0.1; --menu-width: 0.8; }
  .menubar { height: 24px; border-radius: 8px; }
  .hero-shot { padding-top: 24px; }
  .hero-shot .shot-frame { margin-top: -24px; }
  .mb-wifi, .mb-battery { display: none; }
  .mb-clock { font-size: 11px; left: calc(var(--icon) + 56px); }
}

.wide-shot { max-width: 820px; margin: 48px auto 0; }

.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head .section-lede { margin: 0 auto; }
.after .wide-shot { max-width: 880px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }
.feature-note { color: var(--text-3); font-size: 15px; text-align: center; margin: 32px 0 0; }

.features { gap: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--text-2); margin: 0; }

/* ---- Privacy ---- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist li::before { content: "✓"; color: var(--good); font-weight: 700; }
.checklist.neutral li::before { content: "→"; color: var(--text-3); }

/* ---- Pricing ---- */

.price-card {
  max-width: 560px; margin: 0 auto; text-align: center; padding: 38px 32px;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, var(--brand) border-box;
  border: 1.5px solid transparent; box-shadow: 0 24px 60px rgba(58, 44, 24, 0.08);
}
.price { font-size: 60px; font-weight: 780; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price-sub { color: var(--text-3); margin-bottom: 22px; }
.price-card .checklist { text-align: left; margin: 24px auto; max-width: 400px; }

/* ---- Table ---- */

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-3); font-weight: 600; width: 32%; }
td { color: var(--text-2); }

/* ---- FAQ ---- */

details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--text-3); }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); margin: 10px 0 0; }

/* ---- Closing call to action ---- */

.closing { padding: 0 0 80px; }
.closing .band {
  border-radius: 24px; padding: 56px 32px; text-align: center; color: #fff;
  background: var(--brand);
}
.closing h2 { color: #fff; margin: 0 0 10px; }
.closing p { margin: 0 auto; max-width: 560px; color: rgba(255, 255, 255, 0.9); font-size: 18px; }
.closing .btn-light { color: var(--text); background: #fff; }
.closing .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.closing .fine { color: rgba(255, 255, 255, 0.85); }

/* ---- Footer ---- */

footer { padding: 40px 0 56px; color: var(--text-3); font-size: 14px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 22px; height: 22px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--text-2); }

/* ---- Legal pages ---- */

.doc { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; }
.doc h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc .updated { color: var(--text-3); margin-bottom: 32px; }
.doc h2 { font-size: 24px; margin-top: 36px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--text-2); }
.doc code { font-family: var(--mono); font-size: 0.9em; }

.doc dl.identity { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 20px; }
.doc dl.identity dt { color: var(--text-3); }
.doc dl.identity dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .doc dl.identity { grid-template-columns: 1fr; } .doc dl.identity dd { margin-bottom: 8px; } }
.doc section + section { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--border); }

.not-found { text-align: center; }
.not-found img { border-radius: 22px; }
