/* DesignBuff tokens, mirrored from designbuff.co (src/styles/globals.css). */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --bg: #0b0c0b;
  --surface: #111310;
  --surface-2: #151b12;
  --ink: #efefeb;
  --ink-2: #babeb2;
  --muted: #92958e;
  --faint: #747d6c;
  --line: #272a24;
  --accent: #d3e6ad;
  --accent-ink: #111;
  --radius: 20px;
  --gap: 12px;
  --font-sans: "Instrument Sans", Arial, sans-serif;
  --font-hero: "Figtree", "Instrument Sans", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }

/* Top padding matches the gap above each row heading (grid gap + row-head top padding). */
.wrap { max-width: 1120px; margin: 0 auto; padding: calc(var(--gap) + 28px) 16px 16px; }

/* Bento grid: 12 columns on wide pages, 6 on medium, 1 on phones. */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tile--hero { grid-column: span 8; min-height: 340px; justify-content: space-between; gap: 28px; background: radial-gradient(120% 140% at 100% 0%, #1b2416 0%, var(--surface) 55%); }
.tile--contact { grid-column: span 4; justify-content: flex-end; }
.tile--feature { grid-column: span 6; grid-row: span 2; }
.tile--app { grid-column: span 3; }
.tile--app.tile--feature { grid-column: span 6; }
.tile--third { grid-column: span 4; }
.tile--half { grid-column: span 6; }
.tile--app.tile--half { grid-column: span 6; }
.tile--row { flex-direction: row; align-items: center; gap: 16px; }
.tile--row .tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tile--row .btn { flex-shrink: 0; }
.app-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile--build { background: var(--surface-2); justify-content: center; }
.tile--build .btn { align-self: flex-start; }
.tile--cta { grid-column: span 12; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface-2); }
.row-head { grid-column: span 12; padding: 28px 4px 4px; display: flex; flex-direction: column; gap: 6px; }

.logo { height: 26px; width: auto; align-self: flex-start; }
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #a5aa9e;
}
h1 { font-family: var(--font-hero); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; margin-top: 10px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.035em; }
h3 { font-size: 20px; letter-spacing: -0.04em; }
.lede { color: var(--ink-2); margin-top: 14px; max-width: 520px; }
.tile p { color: var(--ink-2); }
.items { color: var(--faint); line-height: 1.9; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid #ffffff20;
  background: #ffffff08;
  color: #dddeda;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: #ffffff14; color: #fff; }
.btn--fill { background: var(--accent); border-color: #e2efc8; color: var(--accent-ink); }
.btn--fill:hover { background: #e2efc8; color: var(--accent-ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.contact-link { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; color: var(--ink-2); }
.contact-link:hover { color: var(--ink); }

/* Apps */
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #1a1d18; }
.tile--feature .app-icon { width: 88px; height: 88px; border-radius: 20px; }
.tile--feature h3 { font-size: 28px; }
.app-kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted) !important; text-transform: uppercase; }
.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--live { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.badge--soon { color: var(--accent); border-color: #3b4630; }

/* Plans */
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.plan li::before { content: "+"; color: var(--accent); margin-right: 10px; font-family: var(--font-mono); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.price { font-family: var(--font-hero); font-size: 32px; letter-spacing: -0.04em; color: var(--ink) !important; }
.price span { font-family: var(--font-sans); font-size: 15px; color: var(--muted); letter-spacing: 0; }
.plan--featured { border-color: #3b4630; background: linear-gradient(180deg, #172013 0%, var(--surface) 70%); }

.foot { color: var(--faint); font-size: 13px; padding: 28px 4px 12px; }
.foot a:hover { color: var(--ink); }

/* Medium pages: six columns. */
@media (max-width: 899px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile--hero, .tile--contact, .tile--feature, .tile--app.tile--feature, .tile--cta, .row-head { grid-column: span 6; }
  .tile--feature { grid-row: auto; }
  .tile--app, .tile--third { grid-column: span 3; }
  .tile--third.plan, .tile--half, .tile--app.tile--half { grid-column: span 6; }
}
/* Phones: one column. */
@media (max-width: 599px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > * { grid-column: 1 / -1 !important; }
  .tile { padding: 20px; }
  .tile--hero { min-height: 0; }
  .tile--cta, .tile--row { flex-direction: column; align-items: flex-start; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
