/* Sgeulai marketing site — design tokens and base styles.
   Bauhaus construction: circles, squares, triangles, 90° arcs.
   No rounded corners. No shadows. No gradients. At most one red fill on screen at a time. */

:root {
  --ink:    #14110F;
  --paper:  #F2EFE6;
  --raised: #EAE6DA;
  --well:   #FFFFFF;
  --muted:  #6B6459;
  --rule:   #D8D2C4;

  --red:    #E1372B;
  --red-pressed: #C22C21;
  --blue:   #1E4A9E;
  --yellow: #F0C324;

  --red-100: #FFE8E3;  --red-300: #FF9B8C;  --red-700: #AE130E;  --red-900: #680E09;
  --blue-100:#E8F1FF;  --blue-300:#85A5DD;  --blue-700:#033084;  --blue-900:#021A4D;
  --yellow-100:#F7F0DD; --yellow-700:#B2901A; --yellow-900:#6C5815;

  --sp-hair: 2px; --sp-tight: 4px; --sp-snug: 8px; --sp-base: 12px;
  --sp-wide: 20px; --sp-section: 32px; --sp-pane: 44px;

  --measure: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:    #EDE8DC;
    --paper:  #1A1714;
    --raised: #221E1A;
    --well:   #14110F;
    --muted:  #9A9184;
    --rule:   #37312B;

    --red:    #F04A3D;
    --blue:   #6C9BE8;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Jost, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.serif { font-family: "IBM Plex Serif", Georgia, serif; }

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

h1, h2, h3 { font-weight: 500; margin: 0 0 var(--sp-base); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--sp-wide); }
.measure { max-width: var(--measure); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin: 0 0 var(--sp-snug);
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-wide);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { display: block; height: 26px; width: 26px; }
.brand span {
  font-family: Jost, sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: var(--sp-section); }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.nav-links a:hover { color: var(--blue); }
@media (max-width: 720px) { .nav-links .nav-only { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-family: Jost, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.btn-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-pressed); border-color: var(--red-pressed); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-text {
  color: var(--blue);
  padding: 12px 0;
  font-weight: 500;
}
.btn-text:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-pane) 0 var(--sp-pane); }
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 var(--sp-base);
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 var(--sp-section);
  max-width: 52ch;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-base);
  margin-top: var(--sp-wide);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}
.dot { width: 6px; height: 6px; background: var(--yellow-700); border-radius: 50%; flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: var(--sp-pane) 0; }
section.on-raised { background: var(--raised); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 620px; margin: 0 0 var(--sp-section); }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.card {
  background: var(--paper);
  padding: var(--sp-wide);
}
.card .glyph { margin-bottom: var(--sp-base); }
.card h3 { font-size: 1.05rem; margin-bottom: var(--sp-snug); }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* geometric glyphs — circle = who, square = what, triangle = where */
.glyph svg { display: block; }

/* ---------- Panes diagram ---------- */
.panes {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  min-height: 320px;
}
.pane { background: var(--well); padding: var(--sp-wide); }
.pane .label {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--sp-base);
}
.pane .bar { height: 8px; background: var(--raised); margin-bottom: var(--sp-snug); border: 1px solid var(--rule); }
.pane .bar.w60 { width: 60%; }
.pane .bar.w80 { width: 80%; }
.pane .bar.w40 { width: 40%; }
.pane.editor .line { height: 9px; background: var(--raised); margin-bottom: 7px; }
.pane.editor .line.short { width: 70%; }
@media (max-width: 760px) { .panes { grid-template-columns: 1fr; min-height: auto; } }

/* ---------- Long-form prose (privacy policy, etc.) ---------- */
.prose p, .prose li {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.prose h2 {
  font-size: 1.15rem;
  margin-top: var(--sp-section);
}

/* ---------- The name ---------- */
.pronunciation-line {
  font-family: Jost, sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}
.pronunciation-line .ipa {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-style: italic;
  color: var(--muted);
  margin-left: 6px;
}
.name-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-pane);
  align-items: start;
}
.name-copy p {
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 var(--sp-wide);
}
.name-copy p:last-child { margin-bottom: 0; }
.name-tagline {
  border-left: 1px solid var(--rule);
  padding-left: var(--sp-wide);
}
.big-tagline {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--blue);
  margin: 0;
}
@media (max-width: 760px) {
  .name-grid { grid-template-columns: 1fr; }
  .name-tagline { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: var(--sp-wide); }
}

/* ---------- Quote ---------- */
.quote {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.55;
  max-width: var(--measure);
  border-left: 4px solid var(--blue);
  padding-left: var(--sp-wide);
  margin: 0;
}

/* ---------- Form ---------- */
.signup { max-width: 560px; }
.field-row { display: flex; gap: var(--sp-base); flex-wrap: wrap; margin-bottom: var(--sp-base); }
.field { flex: 1 1 200px; }
.field label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 12px;
  background: var(--well);
  border: 1.5px solid var(--rule);
  color: var(--ink);
  font-family: Jost, sans-serif;
  font-size: 15px;
  border-radius: 0;
}
.field input:focus { border-color: var(--blue); outline: none; }
.signup-status {
  margin-top: var(--sp-base);
  font-size: 14px;
  min-height: 1.2em;
}
.signup-status[data-state="ok"] { color: var(--blue-700); }
.signup-status[data-state="error"] { color: var(--red-700); }
@media (prefers-color-scheme: dark) {
  .signup-status[data-state="ok"] { color: var(--blue); }
  .signup-status[data-state="error"] { color: var(--red); }
}

/* ---------- Feature detail rows (features.html) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-pane);
  align-items: center;
  padding: var(--sp-pane) 0;
  border-bottom: 1px solid var(--rule);
}
.feature-row:last-of-type { border-bottom: none; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }
.feature-text h2 { font-size: 1.5rem; }
.feature-text p { color: var(--ink); font-size: 1rem; }
@media (max-width: 760px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-shot { order: 2; }
}

.feature-shot {
  aspect-ratio: 16 / 10;
  border: 2px dashed var(--rule);
  background: var(--raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-snug);
  padding: var(--sp-wide);
  text-align: center;
}
.feature-shot .shot-icon { width: 26px; height: 26px; opacity: 0.6; }
.shot-label {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.shot-hint {
  font-family: Jost, sans-serif;
  font-size: 13px;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: var(--sp-section) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-base);
}
.footer-links { display: flex; gap: var(--sp-wide); }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}
