/* Maillard — maillard.is
   One page. Brand values are literal here on purpose: this file is the source of truth. */

:root {
  --bg: #e6e5e2;
  --sheet: #fff;
  --sheet-alt: #f9f8f7;
  --rule: #c9c8c4;
  --hair: #ebeae7;
  --ink: #141414;
  --mid: #4a4a48;
  --muted: #6d6d6a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gap: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
}

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

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; }

.sheet { background: var(--sheet); border: 1px solid var(--rule); }
.sheet + .sheet, .sheet + .stack, .stack + .sheet { margin-top: var(--gap); }

/* ── Header ───────────────────────────────────────────────────────────── */

.head {
  padding: 17px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wordmark { display: flex; align-items: center; gap: 11px; }
.wordmark img { width: 26px; }
.wordmark .name { font-family: var(--serif); font-size: 19px; line-height: 1; }
.wordmark .role {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 4px;
}

.head-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.langs {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.langs button { padding: 6px 11px; color: var(--muted); }
.langs button + button { border-left: 1px solid var(--rule); }
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cta {
  display: inline-block;
  padding: 15px 28px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.cta:hover { background: #000; color: #fff; }
.cta--sm { padding: 12px 22px; }
.cta--light { background: #fff; color: var(--ink); padding: 14px 26px; }
.cta--light:hover { background: var(--sheet-alt); color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 64px 52px 56px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.012em;
  max-width: 940px;
  text-wrap: balance;
}
.hero p {
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.62;
  color: var(--mid);
  max-width: 700px;
  margin-top: 26px;
  text-wrap: pretty;
}
.hero .cta { margin-top: 34px; }

/* ── Blocks ───────────────────────────────────────────────────────────── */

.block { padding: 44px 52px 48px; }

.block-head { padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.block-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.9vw, 34px);
  line-height: 1.22;
  max-width: 700px;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Module tiles ─────────────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.tile { border: 1px solid var(--rule); padding: 22px 24px 24px; grid-column: span 2; }
.tile:nth-child(1), .tile:nth-child(2) { grid-column: span 3; }
.tile h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.62;
  color: var(--mid);
  text-wrap: pretty;
}

/* Clipboard badge — drawn, not cropped, so it stays crisp at any size. */
.badge { display: block; position: relative; width: 30px; height: 45.29px; flex: 0 0 auto; padding-top: 2.83px; }
.badge .ring {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 6.18px; height: 2.83px;
  border: .66px solid var(--ink); border-bottom: none;
  border-radius: 1.17px 1.17px 0 0;
}
.badge .clip {
  position: absolute; left: 50%; top: 2.34px; transform: translateX(-50%);
  width: 11.84px; height: 3.84px; background: var(--ink); border-radius: .5px; z-index: 3;
}
.badge .body { display: block; position: relative; background: var(--ink); height: 42.46px; padding: 1.33px 1.33px 2.5px; }
.badge .body::before {
  content: ""; position: absolute; left: 1.56px; right: .98px; top: 1.56px; bottom: 1.33px; background: #dcdad6;
}
.badge .face {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: var(--face); color: var(--glyph);
}
.badge svg { width: 23.18px; height: 23.18px; flex: 0 0 auto; }

/* ── Prints ───────────────────────────────────────────────────────────── */

.prints { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.prints h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.7vw, 31px);
  line-height: 1.22;
  margin-top: 14px;
  max-width: 560px;
  text-wrap: pretty;
}
.docs { display: flex; gap: 16px; align-items: flex-start; }

.doc { background: var(--sheet); border: 1px solid var(--rule); flex: none; }
.doc-manual { width: 182px; height: 257px; padding: 15px 13px; }
.doc-sheet { width: 182px; padding: 11px; margin-top: 26px; }
.doc .slug { font-family: var(--mono); font-size: 5.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.doc .bar { border-bottom: 2px solid var(--ink); margin: 9px 0 13px; }
.doc-sheet .bar { margin: 6px 0 8px; }
.doc .title { font-family: var(--serif); font-size: 18px; line-height: 1.2; margin-bottom: 6px; }
.doc .rev { font-family: var(--mono); font-size: 5.5px; color: var(--muted); margin-bottom: 16px; }
.doc .row {
  border-top: 1px solid var(--hair);
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 7.5px;
  color: var(--mid);
}
.doc .row:last-child { border-bottom: 1px solid var(--hair); }
.doc .row span:last-child { font-family: var(--mono); }

.grid-sheet { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
.grid-sheet > * { border-top: 1px solid var(--hair); padding: 3px 0; font-size: 7px; text-align: center; }
.grid-sheet .dow, .grid-sheet .corner { border-top: none; font-size: 5.5px; color: #8a8a86; padding-bottom: 3px; }
.grid-sheet .dow { font-family: var(--mono); }
.grid-sheet .corner { text-align: left; }
.grid-sheet .task { text-align: left; font-size: 6px; padding: 4px 0; }
.grid-sheet .last { border-bottom: 1px solid var(--hair); }

/* ── Pricing ──────────────────────────────────────────────────────────── */

.trial {
  background: var(--ink);
  margin-top: 26px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.trial .lede { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.trial h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: -.015em;
  color: #fff;
}
.trial .terms {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b4b3ae;
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.plan { background: var(--sheet-alt); border: 1px solid var(--rule); padding: 26px 24px 24px; }
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.plan-head h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.plan-head .who,
.plan .mtm-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.price .big { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.price .caption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.price .caption span { display: block; }
.mtm {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--hair);
  margin-top: 18px;
  padding-top: 11px;
}
.mtm .val { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--mid); white-space: nowrap; }
.plan p { font-style: italic; font-size: 14.5px; line-height: 1.6; color: var(--mid); margin-top: 14px; text-wrap: pretty; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  background: var(--sheet-alt);
  border: 1px solid var(--rule);
  margin-top: var(--gap);
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.foot .who {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot a, .foot .legal { font-size: 13.5px; color: var(--mid); }
.foot a { text-decoration: underline; }

/* ── Narrow ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --gap: 16px; }
  .page { padding: 0 0 20px; }
  .head { padding: 13px 18px; gap: 12px; }
  .head-right { width: 100%; flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .head-right .cta { width: 100%; }
  .langs { align-self: flex-start; }
  .sheet { border-left: none; border-right: none; }
  .page > .stack { padding: 16px 14px 0; }
  .page > .stack .sheet { border: 1px solid var(--rule); }
  .hero { padding: 28px 20px 26px; }
  .hero p { margin-top: 16px; }
  .hero .cta { margin-top: 22px; display: block; }
  .block { padding: 24px 20px 22px; }
  .block-head { padding-bottom: 16px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:nth-child(1), .tile:nth-child(2) { grid-column: auto; }
  .tile h3 { font-size: 19px; }
  .tile p { font-size: 14px; }
  .prints { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs { gap: 12px; }
  .doc-manual { width: 148px; height: 209px; padding: 12px 11px; }
  .doc-sheet { width: auto; flex: 1; min-width: 0; margin-top: 22px; }
  .grid-sheet { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
  .trial { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .trial .lede { flex-direction: column; gap: 7px; }
  .trial .cta { width: 100%; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-head { display: block; }
  .plan-head .who { display: block; margin-top: 6px; }
  .price .big { font-size: 40px; }
  .foot { padding: 20px; }
}
