/* Peckish — shared styles for the marketing site.
   Palette and type mirror the app itself: cream paper, terracotta accent, serif numerals. */

/* The language toggle hides the inactive copy with the `hidden` attribute, which the
   browser implements as plain `display: none` — at author-beating specificity of zero.
   Any class that sets its own `display` therefore un-hides it, and both languages render
   stacked. `.kicker` (flex) and `.sec-intro` (grid) both did exactly that. Fixed once,
   here, rather than per class: the next element given a `display` would have the same
   bug, and it shows up as duplicated text rather than as anything that looks like CSS. */
[hidden] { display: none !important; }

:root {
  --cream: #F7F2EA;
  --card: #EFE8DB;
  --ink: #201B14;
  --ink-soft: #5A5044;
  --subtle: #9C9285;
  --faint: #C4BBAC;
  --terracotta: #A9502C;
  --terracotta-deep: #7E3A1E;
  --track: #E8E0D1;
  --hairline: #E6DECF;
  --spring: 380ms cubic-bezier(.2, .9, .2, 1.1);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 760px at 88% -12%, rgba(169, 80, 44, .10), transparent 60%),
    radial-gradient(820px 640px at -8% 108%, rgba(169, 80, 44, .07), transparent 55%),
    var(--cream);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain — the app's printed feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 48px 110px;
  position: relative;
  z-index: 1;
}

.narrow { max-width: 820px; }

/* ————— header ————— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 22.37%;
  overflow: hidden;
  position: relative;
  /* The icon is cream-grounded, same as this page, so it needs an edge of its own
     or it stops reading as a tile and becomes a floating letter. */
  box-shadow: 0 4px 14px rgba(32, 27, 20, .13), inset 0 0 0 1px rgba(32, 27, 20, .14);
  flex: none;
}
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.brand-wm {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -.01em;
}
.brand-wm em { font-style: italic; color: var(--terracotta); }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--spring);
}
.nav a:hover { color: var(--terracotta); }

.lang { display: flex; gap: 4px; }
.lang button {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  transition: all var(--spring);
}
.lang button:hover { border-color: var(--faint); color: var(--ink-soft); }
.lang button.active {
  background: rgba(169, 80, 44, .08);
  border-color: rgba(169, 80, 44, .3);
  color: var(--terracotta);
}

/* ————— type ————— */
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--terracotta); }

h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.03em;
}
h1 em { font-style: italic; font-weight: 400; color: var(--terracotta); }

h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
h2 em { font-style: italic; color: var(--terracotta); }

h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -.015em;
}

p { color: var(--ink-soft); line-height: 1.65; font-size: 16px; }
p + p { margin-top: 14px; }
p b, li b { color: var(--ink); font-weight: 600; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.lede { font-size: 17px; max-width: 560px; margin-top: 24px; }

.sec-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--subtle);
}

.section { margin-top: 108px; }

.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.sec-intro { max-width: 480px; color: var(--ink-soft); line-height: 1.6; font-size: 15.5px; }

/* ————— cards ————— */
.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}
.feature h3 { margin-top: 14px; }
.feature p { font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.feature .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* ————— legal prose ————— */
.legal { margin-top: 72px; }
.legal section { margin-top: 52px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 34px); }
.legal .sec-num { display: block; margin-bottom: 10px; }
.legal p { margin-top: 14px; font-size: 15.5px; }
.legal ul { margin-top: 14px; padding-left: 22px; }
.legal li { color: var(--ink-soft); line-height: 1.6; font-size: 15.5px; margin-top: 8px; }
.legal .updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: 18px;
}

.callout {
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
}
.callout p { margin-top: 0; font-size: 15px; }
.callout p + p { margin-top: 10px; }

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  background: rgba(32, 27, 20, .06);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* ————— footer ————— */
footer {
  margin-top: 112px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
}
.sig {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--subtle);
  opacity: .72;
}
.foot-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--subtle);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.foot-meta a { color: var(--subtle); text-decoration: none; }
.foot-meta a:hover { color: var(--terracotta); }

@media (max-width: 900px) {
  .shell { padding: 28px 20px 72px; }
  .grid { grid-template-columns: 1fr; }
  .section { margin-top: 76px; }
}
