/* YDL Capsule — art direction: warm paper, amber/teal, technical datasheet
   No framework. Google Fonts with system fallback. */

:root {
  --paper: #f7f5ef;
  --paper-2: #efece3;
  --paper-3: #fffdf8;
  --ink: #15140f;
  --ink-2: #5c574c;
  --muted: #8a8477;
  --line: #d9d3c4;
  --line-soft: #e6e1d5;

  --brand: #0f7a6c;
  --brand-dk: #0b5f55;
  --accent: #0f7a6c;
  --amber: #c9861f;
  --amber-2: #dea33c;
  --beige: #e8dcc5;

  --bg: #f7f5ef;
  --bg-2: #efece3;
  --max: 1200px;
  --radius: 2px;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dk); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------------- micro label ---------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 22px;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-2);
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,245,239,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }

.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 16px; letter-spacing: .06em;
  color: var(--ink); text-transform: uppercase;
}
.logo-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber) 0 50%, var(--beige) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
  transform: rotate(-32deg);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; left: 16%; top: 20%;
  width: 14%; height: 26%; border-radius: 999px;
  background: rgba(255,255,255,.6);
}

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  letter-spacing: .01em;
}
.nav a:hover { color: var(--brand); }
.nav .btn { margin-left: 6px; color: #fff; }
.nav a.btn, .nav a.btn:hover { color: #fff; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand); color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--brand-dk); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }

/* ---------------- hero ---------------- */
.hero { padding: 84px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 72px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 26px;
  max-width: 11em;
}
.hero .lead {
  font-size: 19px; line-height: 1.62; color: var(--ink-2);
  max-width: 32em; margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.spec-line {
  margin: 34px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------- hero illustration ---------------- */
.hero-fig { position: relative; }
.capsule-hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 0 0;
}
.capsule-hero::before {
  content: ""; position: absolute; left: 50%; top: -26px; bottom: 26px;
  border-left: 1px dashed var(--line);
}
.part {
  position: relative; width: 152px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16);
}
.part.cap {
  height: 112px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(160deg, var(--amber-2), var(--amber));
}
.part.body {
  height: 156px;
  border-radius: 8px 8px 999px 999px;
  background: linear-gradient(160deg, #efe4ce, var(--beige));
}
.part::after {
  content: ""; position: absolute; left: 17%; top: 12%;
  width: 9%; height: 26%; border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.part.body::after { height: 20%; }

.join-arrow {
  font-family: var(--mono); font-size: 15px; color: var(--ink-2);
  padding: 10px 0; line-height: 1;
}

.fig-lbl {
  position: absolute; font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; color: var(--ink-2); white-space: nowrap;
}
.fig-lbl.cap  { top: 92px; left: calc(50% + 96px); }
.fig-lbl.body { top: 292px; left: calc(50% + 96px); }
.fig-cap {
  margin: 26px auto 0; text-align: center;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8;
  color: var(--ink-2); max-width: 30em;
}

/* ---------------- sections ---------------- */
section { padding: 76px 0; }
section.tight { padding: 56px 0; }
.band { background: var(--paper-2); }

.section-head { max-width: 42em; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.04; letter-spacing: -.028em;
  font-weight: 800; margin: 0 0 16px;
}
.section-head p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 38em; }

/* ---------------- data table (hairline datasheet) ---------------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  background: transparent; font-size: 15.5px;
}
thead th {
  text-align: left; padding: 14px 18px 14px 0;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  white-space: nowrap; background: transparent;
}
tbody td {
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top; background: transparent;
}
tbody tr:hover td { background: rgba(15,122,108,.035); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody td:last-child, thead th:last-child { padding-right: 0; }

.note {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  letter-spacing: .02em; color: var(--ink-2);
  margin-top: 20px; max-width: 62em;
}

/* ---------------- decision table ---------------- */
.decide th, .decide td { padding-right: 28px; }
.decide td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.decide td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.decide a.details {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  border-bottom: 1px solid var(--brand); padding-bottom: 1px;
}

/* ---------------- size row ---------------- */
.size-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(10px, 2vw, 30px);
  overflow-x: auto; padding: 10px 0 4px;
}
.size-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; flex: 0 0 auto;
}
.capsule-shape {
  width: var(--w); height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber) 0 38%, var(--beige) 38% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  position: relative; flex: 0 0 auto;
}
.capsule-shape::after {
  content: ""; position: absolute; left: 18%; top: 8%;
  width: 12%; height: 20%; border-radius: 999px;
  background: rgba(255,255,255,.6);
}
.size-item b {
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .1em;
}
.size-item span {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------------- cards (flat) ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .16s ease;
}
.card:hover { border-color: var(--brand); }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.card .tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  border: 1px solid rgba(15,122,108,.35); border-radius: 999px;
  padding: 4px 11px;
}

.panel {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------------- hairline rows ---------------- */
ul.rows { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li, .rows .row {
  list-style: none; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 16.5px;
}

/* ---------------- formula ---------------- */
.formula {
  font-family: var(--mono); font-size: 14px; line-height: 1.9;
  background: var(--paper-2);
  border-left: 3px solid var(--amber);
  color: var(--ink);
  padding: 20px 22px; margin: 22px 0;
  overflow-x: auto;
}
.formula b { color: var(--brand); font-weight: 600; }

/* ---------------- calculator ---------------- */
.calc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px; margin: 24px 0;
}
.calc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper-3);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15,122,108,.12);
}
.calc-result {
  margin-top: 24px; padding: 20px 22px;
  background: var(--paper-3); border-left: 3px solid var(--brand);
  font-size: 16px;
}
.calc-result strong { font-size: 19px; font-weight: 700; }

/* ---------------- faq ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 0;
  font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-weight: 400;
  color: var(--brand); font-size: 20px; flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 0 0 24px; color: var(--ink-2); font-size: 15.5px;
  max-width: 62em; line-height: 1.75;
}

/* ---------------- cta ---------------- */
.cta-band { background: var(--paper-2); padding: 76px 0; border-top: 1px solid var(--line); }
.cta-band h2 {
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.04;
  letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; max-width: 16em;
}
.cta-band p { margin: 0 0 30px; color: var(--ink-2); font-size: 18px; max-width: 34em; }

/* ---------------- form ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- breadcrumb ---------------- */
.crumb {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding: 26px 0 0;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 8px; opacity: .6; }

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--paper); color: var(--ink-2);
  padding: 64px 0 32px; font-size: 14.5px;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.site-footer a { color: var(--ink-2); display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--muted);
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-fig { max-width: 340px; margin: 0 auto; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .fig-lbl.cap, .fig-lbl.body { left: calc(50% + 84px); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .header-inner { height: 64px; }
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .grid-4, .grid-3, .grid-2, .form-grid, .calc-fields { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .size-row { gap: 14px; }
  .fig-lbl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
