/* IBM Plex — self-hosted (SIL OFL 1.1, see assets/fonts/IBM-Plex-OFL.txt).
   Subset to latin; no third-party font requests are made by this site. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/plex-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('assets/fonts/plex-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/plex-mono-400.woff2') format('woff2');
}

/* Yarukoto landing — design tokens */
:root {
  --bg:        #F4F4F1;
  --band:      #E9E9E4;
  --card:      #FFFFFF;
  --card-alt:  #FBFBF9;
  --chip:      #EEEEE8;
  --ink:       #1A1A18;
  --muted:     #55554F;
  --faint:     #8A8A82;
  --line:      #E1E1DA;
  --line-soft: #EDEDE7;
  --line-hov:  #C6C6BE;
  --link:      #2E52E0;
  --link-hov:  #1A38A8;
  --green:     #1E7A3C;
  --red:       #C22B23;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shell: 1240px;
  --pad: 56px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
}
code.chip {
  background: var(--chip);
  border-radius: 5px;
  padding: 1px 5px;
}
code.chip-light {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.brand span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.repo-pill {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 7px 13px;
  white-space: nowrap;
}
.repo-pill:hover {
  border-color: var(--line-hov);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
  text-wrap: pretty;
}
.body-copy {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #000000; color: #FFFFFF; }
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--line-hov); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(380px, 460px) 1fr;
  gap: 64px;
  align-items: start;
}
.hero-copy { padding-top: 16px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.assurance {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
}
.assurance svg { flex: none; }
.hero-facts {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  font-size: 14px;
  color: var(--muted);
}
.hero-facts dt {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.hero-facts dd { margin: 0; }

/* ---------- device composition ---------- */
.hero-shots {
  display: flex;
  align-items: flex-end;
  position: relative;
  padding-bottom: 8px;
}
.browser {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 60px -28px rgba(26, 26, 24, 0.28);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--card-alt);
  border-bottom: 1px solid var(--line-soft);
}
.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #DDDDD5;
}
.browser-bar .url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.browser img { display: block; width: 100%; height: auto; }
.phone {
  width: 216px;
  margin-left: -84px;
  margin-bottom: -32px;
  border: 9px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 28px 50px -20px rgba(26, 26, 24, 0.42);
  flex: none;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

/* ---------- sections ---------- */
.section { padding-top: 120px; }
.section-tight { padding-top: 104px; }

.split {
  display: grid;
  gap: 64px;
  align-items: center;
}
.split-shot-left { grid-template-columns: 1fr minmax(360px, 440px); }
.split-top { align-items: start; }

.framed {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.framed img { display: block; width: 100%; height: auto; }

.syntax-sample {
  font-family: var(--mono);
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 24px 0 20px;
  color: var(--ink);
  overflow-x: auto;
}
.tok-date { color: var(--link); }
.tok-meta { color: var(--muted); }
.tok-prio { color: var(--red); }

.plain-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- views grid ---------- */
.section-intro {
  margin: 14px 0 40px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.views-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.views-grid figure { margin: 0; }
.views-grid .crop {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 16 / 10;
}
.views-grid .crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.views-grid figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}
.views-grid figcaption b { color: var(--ink); font-weight: 600; }

/* ---------- install band ---------- */
.band {
  margin-top: 120px;
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-grid {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  gap: 64px;
  align-items: start;
}
.band-foot { padding-bottom: 80px; }
.terminal {
  background: var(--ink);
  border-radius: 14px;
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
  color: var(--card-alt);
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}
.terminal-dense { font-size: 13.5px; line-height: 1.85; }
.terminal .c { color: var(--faint); }
.caption-above {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.caption-below {
  font-size: 13.5px;
  color: var(--faint);
  margin-top: 12px;
}

/* ---------- comparison table ---------- */
.compare {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.compare thead th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--card-alt);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}
.compare thead th.us { color: var(--ink); }
.compare tbody th {
  font-size: 15.5px;
  font-weight: 600;
  padding: 16px 24px;
  width: 34%;
}
.compare tbody td { font-size: 15.5px; padding: 16px 24px; width: 33%; }
.compare tbody td.us { color: var(--ink); }
.compare tbody td.them { color: var(--muted); }
.compare tbody tr:not(:last-child) th,
.compare tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- limitations ---------- */
.limits-grid {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 64px;
  align-items: start;
}
.limit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.limit-cards > div { background: var(--bg); padding: 22px 24px; }
.limit-cards h3 {
  font-weight: 600;
  font-size: 15.5px;
  margin: 0 0 6px;
}
.limit-cards p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- closing cta ---------- */
.cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta h2 { font-size: 28px; line-height: 1.15; }
.cta p {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  :root { --pad: 40px; }
  .hero-grid,
  .split-shot-left,
  .band-grid,
  .limits-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-copy { padding-top: 0; }
  .lede { max-width: none; }
  h1 { font-size: 46px; }
  .hero-shots { padding-bottom: 40px; }
  .phone { margin-bottom: -24px; }
  .split-shot-left .framed { order: 2; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .section { padding-top: 80px; }
  .section-tight { padding-top: 72px; }
  .band { margin-top: 80px; }
  .band-grid { padding-top: 56px; padding-bottom: 56px; }
  .band-foot { padding-bottom: 56px; }
  .site-nav { gap: 18px; font-size: 13.5px; }
  .site-nav a:not(.repo-pill) { display: none; }
  .views-grid { grid-template-columns: 1fr; gap: 24px; }
  .limit-cards { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .phone {
    width: 148px;
    margin-left: -56px;
    border-width: 7px;
    border-radius: 26px;
  }
  .phone img { border-radius: 20px; }
  .cta { padding: 32px 26px; gap: 28px; }
  .terminal { padding: 20px 18px; font-size: 12.5px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .compare { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
