/* ============================================================
   SYNLI section styles
   Bento, economics block, form, thank-you.
   ============================================================ */

/* ============================================================
   ASYMMETRIC BENTO (what we build)
   Four items, four cells. One carries a photograph, one is tinted.
   ============================================================ */
.bento { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin-top: 4rem; }
.bento-cell {
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  transition: border-color var(--t-ui) var(--out), transform var(--t-ui) var(--out);
}
@media (hover: hover) and (pointer: fine) {
  .bento-cell:hover { border-color: var(--hair2); transform: translateY(-3px); }
}
.bento-cell:nth-child(1) { grid-column: 1; grid-row: 1; }
.bento-cell:nth-child(2) { grid-column: 1; grid-row: 2; }
.bento-cell:nth-child(3) { grid-column: 2; grid-row: 2; }
.bento-cell--tint { background: linear-gradient(170deg, var(--ac-wash), transparent 75%); border-color: var(--ac-line); }

.bento-media { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; min-height: 16rem; border-radius: var(--r-lg); border: 1px solid var(--hair); }
.bento-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(6, 7, 9, .5)); }

.bento-k { font-size: .8rem; font-weight: 600; color: var(--ac); }
.bento-t { margin-top: 1.2rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.032em; }
.bento-d { margin-top: 1rem; font-size: .94rem; line-height: 1.65; color: var(--muted); max-width: 44ch; }
.bento-list { margin-top: 1.8rem; }
.bento-list li {
  display: grid; grid-template-columns: 1.5rem 1fr; align-items: start;
  padding-block: .7rem; border-top: 1px solid var(--hair);
  font-size: .88rem; line-height: 1.45; color: var(--muted);
}
.bento-list li .icon { color: var(--ac); margin-top: .18em; }
.bento-note {
  margin-top: 2.8rem; padding: 1.8rem 2rem;
  border: 1px solid var(--hair); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02);
  font-size: 1.02rem; line-height: 1.65; color: var(--fg); max-width: 64ch;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell:nth-child(1), .bento-cell:nth-child(2),
  .bento-cell:nth-child(3), .bento-media { grid-column: 1; grid-row: auto; }
  .bento-media { order: 1; min-height: 13rem; }
}

/* ============================================================
   ECONOMICS. The one section that sits on the electric field.
   ============================================================ */
.econ { position: relative; overflow: hidden; padding-block: clamp(6rem, 11vw, 11rem); background: var(--bg); border-block: 1px solid var(--hair); }
.econ::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 30% at 50% 0%, rgba(220, 194, 156, .22), transparent 70%),
    radial-gradient(ellipse 85% 62% at 50% 0%, rgba(196, 168, 130, .15), transparent 66%);
}
.econ > * { position: relative; }
.econ-head { max-width: 46rem; }
.econ-lead { margin-top: 1.6rem; }

.econ-panel { margin-top: 4rem; }
.econ-panel .bezel-core { background: rgba(22, 25, 28, .92); }

.econ-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: clamp(1.75rem, 3vw, 2.6rem); border-bottom: 1px solid var(--hair); }
.econ-ctl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.econ-ctl-h span { font-size: .84rem; font-weight: 500; color: var(--muted); }
.econ-ctl-h output { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.5rem; line-height: 1; letter-spacing: -.04em; color: var(--fg); }

.econ input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--hair2); outline: none; cursor: pointer; border-radius: var(--r-pill); }
.econ input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: var(--r-pill);
  background: var(--fg); border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--hair2), 0 3px 10px -2px rgba(0, 0, 0, .8);
  cursor: grab; transition: transform .3s var(--ease);
}
.econ input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.econ input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--surface); border-radius: var(--r-pill); background: var(--fg); cursor: grab; }
.econ input[type=range]:focus-visible { outline: 2px solid var(--ac); outline-offset: 8px; }

.econ-out { display: grid; grid-template-columns: repeat(3, 1fr); }
.econ-fig { padding: clamp(1.75rem, 3vw, 2.6rem); }
.econ-fig + .econ-fig { border-left: 1px solid var(--hair); }
.econ-fig--key { background: linear-gradient(180deg, var(--ac-wash), transparent); }
.econ-fig-h { font-size: .84rem; font-weight: 500; color: var(--muted); line-height: 1.5; min-height: 3em; }
.econ-fig-h b { color: var(--fg); font-weight: 500; }
.econ-fig--key .econ-fig-h { color: var(--ac2); }
.econ-fig-n { margin-top: 1rem; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1; letter-spacing: -.05em; color: var(--muted); }
.econ-fig--key .econ-fig-n { color: var(--ac2); }
/* The line that makes this a strategy comparison rather than a price comparison. */
.econ-fig-x { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--hair); font-size: .84rem; line-height: 1.6; color: var(--dim); }
.econ-fig-x--key { color: var(--muted); }
.econ-fine { padding: 1.3rem clamp(1.75rem, 3vw, 2.6rem); border-top: 1px solid var(--hair); font-size: .78rem; line-height: 1.6; color: var(--dim); }
.econ-note { margin-top: 3rem; padding-left: 1.8rem; border-left: 1px solid var(--ac); font-size: 1.08rem; line-height: 1.6; color: var(--fg); max-width: 60ch; white-space: pre-line; }

@media (max-width: 900px) {
  .econ-controls { grid-template-columns: 1fr; gap: 2rem; }
  .econ-out { grid-template-columns: 1fr; }
  .econ-fig + .econ-fig { border-left: 0; border-top: 1px solid var(--hair); }
  .econ-fig-h { min-height: 0; }
}

/* ============================================================
   FORM
   ============================================================ */
.form-shell { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.form-aside { position: sticky; top: 7rem; }
.form-aside .d2 { max-width: 12ch; margin-top: 1.5rem; }
.form-aside-note { margin-top: 1.5rem; font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 34ch; }
.form-assure { margin-top: 2.4rem; }
.form-assure li {
  display: grid; grid-template-columns: 1.5rem 1fr; align-items: start; gap: .5rem;
  padding-block: .9rem; border-top: 1px solid var(--hair);
  font-size: .89rem; line-height: 1.5; color: var(--muted);
}
.form-assure li .icon { color: var(--ac); margin-top: .18em; }

.form-panel { padding: clamp(1.75rem, 3vw, 2.6rem); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.fgroup { display: flex; flex-direction: column; min-width: 0; border: 0; }
.fgroup--full { grid-column: 1 / -1; }

.flabel { font-size: .82rem; font-weight: 500; color: var(--fg); margin-bottom: .55rem; }
.flabel .opt { font-weight: 400; }
.flabel .opt { color: var(--dim); }

.finput, .ftext {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--hair2);
  border-radius: var(--r-sm);
  padding: .9rem 1.05rem;
  font-family: var(--text); font-size: .95rem; color: var(--fg);
  transition: border-color var(--t-ui) var(--out), background .4s var(--ease), box-shadow .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.ftext { resize: vertical; min-height: 7rem; line-height: 1.6; }
/* Lifted to clear 4.5:1 against the field fill on charcoal. */
.finput::placeholder, .ftext::placeholder { color: #9BA1A8; }
.finput:focus, .ftext:focus { outline: none; border-color: var(--ac); background: rgba(196, 168, 130, .06); box-shadow: 0 0 0 3px rgba(196, 168, 130, .16); }
.finput.invalid, .ftext.invalid { border-color: #FF8A80; box-shadow: 0 0 0 3px rgba(255, 138, 128, .16); }

.fchips { display: flex; flex-wrap: wrap; gap: .55rem; }
.fchip { cursor: pointer; }
.fchip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fchip span {
  display: inline-block; padding: .62rem 1.1rem;
  background: var(--field); border: 1px solid var(--hair2); border-radius: var(--r-pill);
  font-size: .87rem; color: var(--muted);
  transition: background var(--t-ui) var(--out), border-color .4s var(--ease), color .4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .fchip:hover span { border-color: rgba(255, 255, 255, .3); color: var(--fg); }
}
.fchip.picked span { background: var(--fg); border-color: var(--fg); color: var(--charcoal); font-weight: 600; }
.fchip input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 2px; }

.fconsent { display: flex; align-items: flex-start; gap: .85rem; margin-top: 2.2rem; cursor: pointer; }
.fconsent input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fbox { position: relative; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--hair2); border-radius: 6px; background: var(--field); transition: background var(--t-ui) var(--out), border-color .4s var(--ease); }
.fconsent.checked .fbox { background: var(--ac); border-color: var(--ac); }
.fconsent.checked .fbox::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--charcoal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fconsent input:focus-visible + .fbox { outline: 2px solid var(--ac); outline-offset: 3px; }
.fconsent-t { font-size: .86rem; line-height: 1.55; color: var(--muted); }

.ferror { display: none; margin-top: 1.3rem; padding: .95rem 1.1rem; background: rgba(255, 138, 128, .1); border: 1px solid rgba(255, 138, 128, .32); border-radius: var(--r-sm); font-size: .89rem; color: #FFB4AC; }
.ferror.on { display: block; }

.fsubmit { width: 100%; justify-content: center; margin-top: 1.8rem; padding: 1.05rem 1.05rem 1.05rem 1.6rem; font-size: .98rem; }
.fsubmit[disabled] { opacity: .55; cursor: default; }
.fnote { margin-top: 1.1rem; text-align: center; font-size: .82rem; color: var(--dim); }

.fsuccess { padding: 3rem clamp(1.75rem, 3vw, 2.6rem); }
.fsuccess h3 { margin-top: 1.2rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -.035em; }
.fsuccess p { margin-top: 1.1rem; font-size: .98rem; line-height: 1.65; color: var(--muted); max-width: 42ch; }

@media (max-width: 900px) {
  .form-shell { grid-template-columns: 1fr; }
  .form-aside { position: relative; top: 0; }
  .fgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   THANK YOU
   ============================================================ */
.ty { min-height: 82dvh; display: flex; align-items: center; padding-block: 11rem 5rem; background:
    radial-gradient(ellipse 40% 26% at 50% 0%, rgba(220, 194, 156, .24), transparent 70%),
    radial-gradient(ellipse 88% 54% at 50% 0%, rgba(196, 168, 130, .16), transparent 64%); }
.ty h1 { margin-top: 1.6rem; max-width: 14ch; }
.ty-sub { margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.ty-next { margin-top: 3.5rem; max-width: 42rem; counter-reset: ty; }
.ty-next li {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem;
  padding-block: 1.4rem; border-top: 1px solid var(--hair);
  font-size: .95rem; line-height: 1.6; color: var(--muted);
}
.ty-next li:last-child { border-bottom: 1px solid var(--hair); }
.ty-next li::before { content: counter(ty, decimal-leading-zero); counter-increment: ty; font-family: var(--mono); font-size: .76rem; color: var(--ac); }

/* ============================================================
   RICH TEXT
   ============================================================ */
.rte { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 66ch; }
.rte > * + * { margin-top: 1.2rem; }
.rte h2 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.032em; color: var(--fg); margin-top: 3rem; }
.rte h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--fg); margin-top: 2rem; letter-spacing: -.025em; }
.rte a { color: var(--ac2); text-decoration: underline; text-underline-offset: 3px; }
.rte ul, .rte ol { padding-left: 1.3rem; list-style: revert; }
.rte li + li { margin-top: .5rem; }
.rte strong { color: var(--fg); font-weight: 600; }
