/* carsofa design tokens — Front 01 system */
:root {
  color-scheme: dark;
  --cs-charcoal: #171816;
  --cs-charcoal-2: #20221f;
  --cs-charcoal-3: #2b2e29;
  --cs-ivory: #f3eee4;
  --cs-ivory-soft: #e4dfd4;
  --cs-body: #c9c4bb;
  --cs-mute: #aaa99f;
  --cs-line: rgba(243, 238, 228, 0.14);
  --cs-line-strong: rgba(243, 238, 228, 0.22);
  --cs-good: #76e39a;
  --cs-warn: #ffd166;
  --cs-bad: #ff7f75;
  --cs-radius: 10px;
  --cs-font: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --cs-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cs-space: 20px;
  --cs-max: 36rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--cs-charcoal);
  color: var(--cs-ivory);
  font-family: var(--cs-font);
  -webkit-text-size-adjust: 100%;
}

body.cs-shell {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cs-ivory);
  background: var(--cs-charcoal);
  font: 17px/1.5 var(--cs-font);
}

.cs-shell a { color: var(--cs-mute); text-decoration: none; }
.cs-shell a:hover { color: var(--cs-ivory-soft); }

.cs-main {
  width: min(32rem, 100%);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  gap: 28px;
}

.cs-main.center {
  min-height: 100vh;
  min-height: 100dvh;
  place-content: center;
}

.cs-main.top {
  place-content: start;
}

.cs-appeal {
  margin: 0;
  color: var(--cs-body);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.cs-door-hint {
  margin: 0;
  color: var(--cs-mute);
  font-size: 13px;
  line-height: 1.45;
}

.cs-quiet {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--cs-mute);
  font-size: 14px;
}

.cs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.cs-brand img {
  width: 40px;
  height: 25px;
  display: block;
  flex: 0 0 auto;
}

.cs-brand-meta { display: grid; gap: 4px; }

.cs-wordmark {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  color: var(--cs-ivory);
  font-size: 22px;
  line-height: 1;
}

.cs-wordmark .car { font-weight: 500; letter-spacing: -0.025em; }
.cs-wordmark .sofa { font-weight: 500; letter-spacing: -0.025em; }

.cs-kicker {
  margin: 0;
  color: var(--cs-mute);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.cs-title {
  margin: 0;
  color: var(--cs-ivory);
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.cs-title-line {
  display: inline-block;
  white-space: nowrap;
}

.cs-lead,
.cs-note {
  margin: 0;
  color: var(--cs-body);
  font-size: 17px;
  line-height: 1.55;
}

.cs-note { font-size: 15px; color: var(--cs-mute); }

.cs-fine {
  margin: 0;
  color: var(--cs-mute);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

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

.cs-how {
  margin: 0;
  width: 100%;
  line-height: 0;
}
.cs-how img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: var(--cs-charcoal-2);
}

.cs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.cs-steps li {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--cs-mute);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  align-content: start;
}
.cs-steps img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cs-charcoal-2);
  align-self: start;
}

.cs-form { display: grid; gap: 12px; margin: 0; }

.cs-label {
  display: block;
  margin: 0 0 8px;
  color: var(--cs-mute);
  font-size: 14px;
}

.cs-field {
  width: 100%;
  min-height: 54px;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-line);
  padding: 0 16px;
  background: var(--cs-charcoal-2);
  color: var(--cs-ivory);
  font: inherit;
}

.cs-field::placeholder { color: #6f6f78; }
.cs-field:focus {
  outline: 2px solid rgba(243, 238, 228, 0.35);
  outline-offset: 1px;
  border-color: var(--cs-line-strong);
}

[hidden] { display: none !important; }

.cs-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: var(--cs-ivory);
  color: var(--cs-charcoal);
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.cs-btn:active { transform: scale(0.98); background: var(--cs-ivory-soft); }
.cs-btn.secondary {
  background: transparent;
  color: var(--cs-ivory);
  border: 1px solid var(--cs-line);
}

.cs-panel {
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: 400 20px/1.4 var(--cs-mono);
  letter-spacing: -0.02em;
  text-align: left;
  word-break: break-all;
  color: var(--cs-ivory);
}

.cs-door { display: grid; gap: 8px; width: 100%; }
.cs-door-kicker {
  margin: 0;
  color: var(--cs-mute);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.cs-door-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.cs-status { min-height: 24px; margin: 0; color: var(--cs-good); }
.cs-status.err { color: var(--cs-bad); }

.cs-account {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--cs-line);
}
.cs-account[hidden] { display: none !important; }
.cs-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cs-account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-good);
  flex: 0 0 auto;
}
.cs-account-email {
  margin: 0;
  color: var(--cs-ivory);
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-account-hint {
  margin: 0;
  color: var(--cs-mute);
  font-size: 13px;
  line-height: 1.4;
}
.cs-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cs-account-actions a,
.cs-account-actions button {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border-radius: var(--cs-radius);
  font: 500 14px/1.2 var(--cs-font);
  text-decoration: none;
  touch-action: manipulation;
  cursor: pointer;
}
.cs-account-actions a {
  border: 1px solid var(--cs-line);
  color: var(--cs-ivory);
  background: transparent;
}
.cs-account-actions button {
  border: 0;
  background: var(--cs-charcoal-3);
  color: var(--cs-ivory);
}

.cs-footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--cs-mute);
  font-size: 13px;
}

.cs-warn {
  margin: 0;
  color: var(--cs-warn);
  font-size: 14px;
  line-height: 1.5;
}

.cs-legal h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cs-legal h2 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--cs-ivory);
}

.cs-legal p,
.cs-legal li { color: var(--cs-body); }

.cs-legal ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-btn:active { transform: none; }
}

/* Warm editorial surfaces. Variables remain semantic in each local theme. */
html:has(body.cs-light) { background: #f3eee4; color-scheme: light; }
body.cs-light {
  color-scheme: light;
  --cs-charcoal: #f3eee4;
  --cs-charcoal-2: #eae5da;
  --cs-charcoal-3: #e1dbcf;
  --cs-ivory: #171816;
  --cs-ivory-soft: #33382f;
  --cs-body: #41473e;
  --cs-mute: #64685e;
  --cs-line: rgba(23, 24, 22, .18);
  --cs-line-strong: rgba(23, 24, 22, .32);
  --cs-good: #326241;
  --cs-warn: #805513;
  --cs-bad: #a13930;
}
.cs-shell .cs-btn { color: var(--cs-charcoal); }
.cs-shell .cs-btn.secondary { color: var(--cs-ivory); }
.cs-shell a:focus-visible, .cs-shell button:focus-visible, .cs-shell input:focus-visible {
  outline: 2px solid var(--cs-ivory); outline-offset: 4px;
}
.cs-light .cs-field::placeholder { color: #64685e; }
.cs-light .cs-field:focus { outline-color: #41473e; }
.cs-light .cs-main { width: min(40rem, 100%); gap: 26px; padding-top: 48px; }
.cs-light .cs-brand { margin-bottom: 12px; }
.cs-light .cs-title { text-wrap: unset; }
.cs-light .cs-title .cs-title-line { white-space: nowrap; }
.cs-light .cs-how img { border-radius: 18px; }
.cs-light .cs-footer { border-top: 1px solid var(--cs-line); padding-top: 24px; }
.cs-light .cs-door { border-top: 1px solid var(--cs-line); padding-top: 24px; }
@media (min-width: 900px) {
  .cs-light .cs-main { padding-top: 64px; }
  .cs-light.cs-intro .cs-main { width: min(52rem, 100%); }
  .cs-intro .cs-title { max-width: 18em; font-size: 44px; }
}

/* The approved editorial composition, not just a theme recolour. */
.cs-light.cs-landing .cs-main { width: min(1160px,100%); padding: 36px 40px 60px; gap: 24px; }
.cs-landing-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:40px; }
.cs-light .cs-landing-header .cs-brand { margin:0; }
.cs-landing-header nav { display:flex; gap:28px; font-size:14px; }
.cs-landing .cs-title { font-size:clamp(38px,5.4vw,72px); line-height:1.22; max-width:none; letter-spacing:-.045em; }
.cs-landing .cs-appeal { font-size:19px; }
.cs-landing #start-cta { width:fit-content; min-width:220px; border-radius:999px; padding:0 30px; margin:0 0 8px; }
.cs-landing .cs-how img { border-radius:16px; aspect-ratio:16/7.5; object-position:center 58%; }
.cs-landing .cs-steps { margin-top:28px; gap:24px; }
.cs-landing .cs-steps img { aspect-ratio:16/9; }
.cs-landing .cs-note,.cs-landing .cs-door,.cs-landing .cs-account { max-width:640px; }
@media(max-width:600px){
 .cs-light.cs-landing .cs-main { padding:28px 22px 40px; gap:20px; }
 .cs-landing-header { margin-bottom:20px; gap:12px; }
 .cs-landing-header nav { gap:14px; font-size:12px; }
 .cs-landing-header nav a:last-child { display:none; }
 .cs-landing .cs-title { font-size:clamp(34px,8.7vw,48px); letter-spacing:-.04em; }
 .cs-landing .cs-appeal { font-size:16px; }
 .cs-landing .cs-how img { aspect-ratio:4/3; }
 .cs-landing .cs-steps { gap:12px; margin-top:16px; }
 .cs-landing .cs-steps img { aspect-ratio:1; }
}

/* Full-bleed first view: the product benefit lives on the photograph. */
.cs-light.cs-landing .cs-main { width:100%; padding:0 0 48px; gap:28px; grid-template-columns:minmax(0,1fr); justify-content:stretch; }
.cs-landing .cs-main > :not(.cs-immersive-hero) { width:calc(100% - 48px); max-width:1080px; margin-left:auto; margin-right:auto; }
.cs-immersive-hero { position:relative; isolation:isolate; min-height:740px; min-height:100svh; padding:32px max(24px,calc((100vw - 1160px)/2)); display:flex; flex-direction:column; align-items:center; color:#f3eee4; background:#171816; overflow:hidden; }
.cs-immersive-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(12,17,16,.78),rgba(12,17,16,.45) 38%,rgba(12,17,16,.04) 62%,rgba(12,17,16,.66)); }
.cs-immersive-hero .cs-landing-header { width:100%; margin-bottom:58px; }
.cs-immersive-hero .cs-wordmark,.cs-immersive-hero nav a { color:#f3eee4; }
.cs-immersive-hero .cs-title { color:#f3eee4; text-align:center; font-size:clamp(40px,5.4vw,72px); line-height:1.2; font-weight:500; max-width:100%; }
.cs-immersive-hero .cs-appeal { color:#f3eee4; text-align:center; line-height:1.7; margin-top:20px; font-size:18px; }
.cs-immersive-hero #start-cta { background:#f3eee4; color:#171816; border-radius:8px; min-width:280px; margin:24px 0 0; }
.cs-immersive-hero #how-hero { position:absolute; inset:0; z-index:-2; height:100%; }
.cs-immersive-hero #how-hero img { width:100%; height:100%; border-radius:0; object-fit:cover; object-position:center 62%; }
.hero-boundary { margin:auto 0 0; padding-top:100px; text-align:center; font-size:12px; line-height:1.6; color:#f3eee4; }
.brand-promise { padding-top:26px; font-size:26px; font-weight:500; }
@media(max-width:600px){
 .cs-immersive-hero { min-height:740px; min-height:100svh; padding:24px 22px 20px; }
 .cs-immersive-hero .cs-landing-header { margin-bottom:42px; }
 .cs-immersive-hero .cs-title { font-size:clamp(28px,8.2vw,40px); }
 .cs-immersive-hero .cs-appeal { font-size:15px; margin-top:16px; }
 .cs-immersive-hero #how-hero img { object-position:57% center; }
 .cs-immersive-hero #start-cta { width:100%; min-width:0; max-width:340px; }
 .hero-boundary { font-size:11px; }
 .brand-promise { font-size:22px; }
}

.cs-immersive-hero #how-hero picture { display:block; height:100%; }

.cs-main > #done { display:grid; gap:24px; }
.cs-legal p,.cs-legal li,.cs-note,.cs-lead,.cs-door-hint { overflow-wrap:anywhere; }
.cs-field { min-width:0; width:100%; }
.cs-footer a { padding:8px 0; }
@media(max-width:360px){ .cs-light .cs-main:not(.cs-landing .cs-main) { padding-left:20px;padding-right:20px; } }
