/* ══════════════════════════════════════════════════════════════════
   /yar, visual-first (2026-10-21). Built on the site tokens, which are
   Claude Design v11.3.1 (landing/tokens.generated.css): Space Grotesk
   display, Inter body, Newsreader accent, warm paper, violet for the one
   primary action, night only for the closing band. Every image is a
   design-system render (app template mockups, generated figures).
   ══════════════════════════════════════════════════════════════════ */

/* hero */
.y3-hero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.y3-hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cg-violet-300) 32%, transparent), transparent 70%);
}
.y3-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.y3-lockup { display: block; height: 44px; width: auto; margin: 18px 0 18px; }
.y3-title {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.35rem, 1.7rem + 2.4vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; max-width: 18ch;
}
.y3-title .serif { font-weight: 400; }
.y3-nowrap { white-space: nowrap; }
.y3-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.y3-status { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.y3-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cg-teal-600); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cg-teal-600) 18%, transparent); flex: none; }

.y3-hero-phones { position: relative; height: clamp(440px, 46vw, 620px); }
.y3-phone {
  position: absolute; width: auto; height: 88%; border-radius: 36px;
  box-shadow: 0 40px 80px -36px rgba(26, 26, 46, .45), 0 0 0 1px rgba(81, 69, 168, .08);
  background: #fff;
}
.y3-phone-back { right: 4%; top: 0; transform: rotate(4deg); opacity: .96; }
.y3-phone-front { left: 6%; bottom: 0; transform: rotate(-3deg); }

/* section heads centered for the picture sections */
.y3-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.y3-head-center .eyebrow { justify-content: center; }
.y3-head-center .section-sub { margin-left: auto; margin-right: auto; }

/* figures */
.y3-figure { margin: 0 auto; max-width: 1120px; }
.y3-figure img { display: block; width: 100%; height: auto; }
.y3-figure-card { background: var(--cg-lp-bg-soft, #FAF8F2); border: 1px solid var(--hair); border-radius: 24px; padding: clamp(10px, 2vw, 24px); }
.y3-loop { background: var(--bg-soft); }
.y3-private { background: var(--cg-lp-bg, #F4F2EF); }

/* four phones */
.y3-phones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); counter-reset: none; }
.y3-phones li { position: relative; text-align: center; }
.y3-phones img {
  display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 18px; border-radius: 28px; background: #fff;
  box-shadow: 0 28px 60px -34px rgba(26, 26, 46, .5), 0 0 0 1px rgba(81, 69, 168, .08);
}
.y3-step {
  position: absolute; top: -12px; left: calc(50% - min(120px, 50%) - 6px); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--step); color: #fff; font: 700 16px var(--f-display);
  box-shadow: 0 0 0 4px var(--bg);
}
.y3-phones h3 { font: 600 var(--fs-h5)/1.25 var(--f-display); color: var(--ink); margin: 0 0 6px; }
.y3-phones p { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0 auto; max-width: 24ch; }
.y3-note { margin: 28px auto 0; text-align: center; font-size: 15px; color: var(--muted); }

/* four promises */
.y3-promises { padding-top: clamp(48px, 6vw, 80px); }
.y3-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.y3-cards li { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 26px 24px 24px; }
.y3-ic {
  width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--cg-violet-50); margin-bottom: 16px;
  fill: none; stroke: var(--cg-violet-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box;
}
.y3-cards h3 { font: 600 var(--fs-h5)/1.25 var(--f-display); color: var(--ink); margin: 0 0 8px; }
.y3-cards p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* closing band on night */
.y3-cta { background: radial-gradient(110% 120% at 85% 10%, #303050 0%, #1E1E32 48%, #15131C 100%); color: var(--on-night-1); }
.y3-cta .section-title { color: var(--cg-day-50); }
.y3-cta .section-sub { color: var(--on-night-2); }
.y3-cta .eyebrow { color: var(--cg-violet-300); }
.y3-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.y3-ghost-light { color: var(--cg-violet-200); }
.y3-cta-map { display: block; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); transition: transform var(--dur-base) var(--ease); }
.y3-cta-map:hover { transform: translateY(-3px); }
.y3-cta-map:focus-visible { outline: 3px solid var(--cg-azure-300); outline-offset: 4px; }
.y3-cta-map img { display: block; width: 100%; height: auto; }

.y3-scroll-hint { display: none; }
@media (max-width: 760px) {
  .y3-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .y3-scroll img { width: 980px; max-width: none; }
  .y3-scroll:focus-visible { outline: 3px solid var(--cg-azure-300); outline-offset: 3px; }
  .y3-scroll-hint { display: block; margin: 12px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
}
@media (max-width: 1024px) {
  .y3-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .y3-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .y3-hero-grid, .y3-cta-grid { grid-template-columns: 1fr; }
  .y3-hero-phones { height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
  .y3-title { max-width: none; }
}
@media (max-width: 560px) {
  .y3-cards { grid-template-columns: 1fr; }
  .y3-phones img { max-width: 200px; }
  .y3-hero-phones { height: 360px; }
}
@media (prefers-reduced-motion: reduce) { .y3-cta-map { transition: none; } }
html.reduced-motion .y3-cta-map { transition: none; }

/* ══════════════════════════════════════════════════════════════════
   v4 (2026-10-21): the key value and the comparison. Tokens only.
   ══════════════════════════════════════════════════════════════════ */
.y4-core { background: var(--bg); }
.y4-cap { max-width: 72ch; margin: 18px auto 0; text-align: center; font-size: 15px; line-height: 1.55; color: var(--muted); }
.y4-cap a, .y4-notes a, .y4-method a { color: var(--cg-violet-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.y4-compare { background: var(--bg-soft); }
.y4-more { text-align: center; margin: 28px 0 0; }
.y4-scroll { overflow-x: auto; border: 1px solid var(--hair); border-radius: 20px; background: var(--surface); }
.y4-scroll:focus-visible { outline: 3px solid var(--cg-azure-600); outline-offset: 3px; }
.y4-land, .y4-matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.y4-land { min-width: 860px; }
.y4-land th, .y4-land td { padding: 14px 12px; border-bottom: 1px solid var(--hair); text-align: center; vertical-align: middle; }
.y4-land thead th { font: 600 14px/1.3 var(--f-display); color: var(--ink); }
.y4-land tbody th { text-align: left; font-weight: 400; min-width: 220px; }
.y4-land tbody th b { display: block; font: 600 16px/1.3 var(--f-display); color: var(--ink); }
.y4-land tbody th span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.y4-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hair); background: var(--bg); color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.y4-pill-yar { background: var(--cg-violet-700); border-color: var(--cg-violet-700); color: var(--cg-day-50); font-weight: 600; }
.y4-dash { color: var(--muted); }
.y4-yar-row { background: var(--cg-violet-50); }
.y4-yar-row th b, .y4-yar-row th { color: var(--cg-violet-700) !important; }
.y4-matrix { min-width: 820px; }
.y4-matrix th, .y4-matrix td { padding: 10px 12px; border-bottom: 1px solid var(--hair); text-align: center; }
.y4-matrix thead th { font: 600 14px/1.3 var(--f-display); color: var(--ink); vertical-align: bottom; }
.y4-matrix thead th:first-child, .y4-matrix tbody th { text-align: left; }
.y4-matrix tbody th { font: 600 15px/1.3 var(--f-body); white-space: nowrap; }
.y4-matrix tbody th a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
.y4-matrix tbody th span { font-weight: 400; color: var(--muted); }
.y4-matrix .y4-group th { background: var(--bg-soft); font: 600 13px/1.3 var(--f-display); letter-spacing: .02em; color: var(--muted); padding-top: 12px; }
.y4-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; box-sizing: border-box; }
.y4-d2 { background: var(--ink); }
.y4-d1 { border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.y4-d0 { border: 2px solid var(--muted); }
.y4-dot.y4-yar { background: var(--cg-violet-700); border: 0; }
.y4-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.y4-legend span { display: inline-flex; align-items: center; gap: 8px; }
.y4-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.y4-hero .y3-title { max-width: none; }
.y4-claim { display: flex; gap: 16px; align-items: flex-start; max-width: 860px; padding: 20px 22px; border-radius: 20px; background: var(--cg-violet-50); border: 1px solid var(--cg-violet-200, var(--hair)); }
.y4-claim .y3-ic { flex: none; margin: 0; background: var(--surface); }
.y4-claim p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.y4-details { margin-top: 20px; }
.y4-details summary { cursor: pointer; font: 600 16px/1.4 var(--f-display); color: var(--cg-violet-700); }
.y4-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.y4-notes li { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.y4-notes-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.y4-notes-cards li { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 18px 20px; }
.y4-notes-cards b { display: block; font: 600 17px/1.3 var(--f-display); color: var(--ink); margin-bottom: 6px; }
.y4-closest { background: var(--bg-soft); }
.y4-narrow { max-width: 820px; }
.y4-method { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.y4-land tbody th, .y4-land thead th:first-child, .y4-matrix tbody th, .y4-matrix thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.y4-yar-row th { background: var(--cg-violet-50) !important; }
.y4-matrix .y4-group th { position: static; }
.y4-hint { display: none; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .y4-hint { display: block; }
  .y4-land tbody th { min-width: 150px; }
  .y4-matrix tbody th { white-space: normal; min-width: 110px; }
}
@media (max-width: 640px) {
  .y4-land { min-width: 760px; font-size: 14px; }
  .y4-claim { padding: 16px; }
}
