/* DR-088. rhod.es/hello.
   Workshop light only, on the shared tokens. The breakpoint is 900px,
   matching the design: above it the calculator splits into controls and
   answer side by side; below it the answer renders first and the controls
   sit underneath, so a cold phone visitor gets a real answer in the first
   screen without touching anything. */

body {
  margin: 0;
  background: var(--ground);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
}

.hello-top { padding: 18px 34px; }
.hello-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.hello-back:hover { color: var(--ink); border-bottom-color: var(--ink); }

.hello-main {
  padding: 26px 34px 90px;
  display: flex; flex-direction: column; align-items: center; gap: 74px;
}
.hello-proof, .hello-range, .hello-ask { width: 100%; max-width: 900px; }

/* ── Block one: proof ──────────────────────────────────────────────── */

.hello-proof { display: flex; flex-direction: column; gap: 22px; }

.hello-badge {
  align-self: flex-start;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 100px;
}

.hello-display {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(39px, 6.2vw, 58px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.02em;
  white-space: nowrap;
}

.hello-card {
  background: var(--panel);
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 7px 7px 0 var(--line-strong);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.hello-sample {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 20px;
  border-bottom: 2px solid var(--line-strong);
  background: #4A7B3A;
}
.hello-sample-tag {
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: #2E4E24; background: #F4EFE2; padding: 5px 10px; border-radius: 100px;
}
.hello-sample-line { font-size: 13.5px; color: rgba(244, 239, 226, .88); }

.hello-card-body { display: flex; align-items: stretch; }

.hello-controls {
  width: 352px; flex: 0 0 352px;
  border-right: 2px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}

.hello-seg {
  display: flex; align-self: flex-start;
  border: 2px solid var(--line-strong); border-radius: 100px; overflow: hidden;
}
.hello-seg-btn {
  appearance: none; border: 0; margin: 0;
  padding: 11px 17px; font-family: inherit; font-size: 14px; font-weight: 300;
  cursor: pointer; background: transparent; color: var(--ink-soft); white-space: nowrap;
}
.hello-seg-btn.is-on { background: #4A7B3A; color: #F7F4EA; font-weight: 500; }

.hello-target { display: flex; flex-direction: column; gap: 11px; }
.hello-label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.hello-stepper {
  display: flex; align-items: stretch; align-self: flex-start;
  border: 2px solid var(--line-strong); border-radius: 3px; overflow: hidden;
  background: var(--panel-raised);
}
.hello-step {
  appearance: none; border: 0; margin: 0;
  padding: 12px 18px; font-family: inherit; font-size: 20px; color: var(--ink);
  cursor: pointer; user-select: none; background: var(--panel);
}
.hello-time {
  min-width: 150px; text-align: center; padding: 12px 6px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 27px; font-weight: 700;
  border-left: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
}
.hello-presets { display: flex; gap: 7px; flex-wrap: wrap; }
.hello-preset {
  appearance: none; margin: 0; font-family: inherit;
  padding: 7px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 100px;
  cursor: pointer; background: transparent; color: var(--ink-soft);
}
.hello-preset.is-on {
  border: 2px solid var(--line-strong); background: #DDE9D4; color: var(--ink);
  padding: 6px 11px;
}

.hello-route {
  border-top: 2px solid var(--line); padding-top: 15px;
  display: flex; flex-direction: column; gap: 6px;
}
.hello-route-line { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.hello-fresh { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); }
.hello-fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: 0 0 auto; }

.hello-answer { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hello-answer-head { display: flex; flex-direction: column; gap: 4px; }
.hello-head-time {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 58px; font-weight: 700; line-height: 1; letter-spacing: -.02em;
}
.hello-sub-line { font-size: 15px; color: var(--ink-soft); }

.hello-legs { border-top: 2px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; }
.hello-leg {
  display: grid; grid-template-columns: 84px 22px 1fr;
  align-items: start; column-gap: 12px;
}
.hello-leg-time { font-size: 16px; font-weight: 400; padding: 7px 0; text-align: right; }
.hello-leg-rail {
  display: flex; justify-content: center; align-self: stretch; padding-top: 13px;
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
}
.hello-leg:first-child .hello-leg-rail { background-size: 1px 60%; background-position: center bottom; }
.hello-leg:last-child .hello-leg-rail { background-size: 1px 40%; background-position: center top; }
.hello-leg-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--panel); border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px var(--panel);
}
.hello-leg-dot.is-filled { background: var(--ink); }
.hello-leg-body { padding: 7px 0; display: flex; flex-direction: column; gap: 2px; }
.hello-leg-label { font-size: 15px; color: var(--ink); }
.hello-leg-note { font-size: 12.5px; color: var(--ink-faint); }

.hello-refusal { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* DR-094. The example-only note above the sample calculator. Same accent
   link language as the preset line below the card. */
.hello-example-note {
  margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.hello-example-note > span { font-size: 14px; color: var(--ink-soft); }

.hello-preset-line {
  margin: 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.hello-preset-line > span { font-size: 14px; color: var(--ink-soft); }
.hello-full-link {
  font-size: 14px; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* ── Block two: range ──────────────────────────────────────────────── */

.hello-range { display: flex; flex-direction: column; gap: 20px; }
.hello-range-head {
  margin: 0; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px; font-weight: 600; line-height: 1.2;
}
.hello-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hello-tile {
  color: #FFF8F4; text-decoration: none;
  border: 2px solid var(--line-strong); border-radius: 6px;
  box-shadow: 4px 4px 0 var(--line-strong);
  padding: 20px; display: flex; flex-direction: column; gap: 9px;
  cursor: pointer;
  transition: box-shadow .12s ease, transform .12s ease;
}
.hello-tile:hover { box-shadow: 7px 7px 0 var(--line-strong); transform: translate(-2px, -2px); }
.hello-tile-tax { background: #D93A14; }
.hello-tile-translator { background: #2A45A8; }
.hello-tile-okr { background: #A6205A; }
.hello-tile-kind {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 248, 244, .72);
}
.hello-tile-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 25px; font-weight: 700; line-height: 1.1;
}
.hello-tile-line { font-size: 14px; color: rgba(255, 248, 244, .86); line-height: 1.5; }
.hello-tile-open {
  font-size: 13px; padding-top: 3px;
  border-bottom: 1px solid rgba(255, 248, 244, .5); align-self: flex-start;
}

/* ── Block three: the ask ──────────────────────────────────────────── */

/* The hidden attribute must beat the display values below; the shared
   stylesheets carry no such rule and an author display:flex would
   otherwise override the browser default and show both states at once. */
.hello-signup [hidden] { display: none !important; }

/* Both states live inside one bordered box that never changes height:
   the box owns the min-height and centres whichever state is visible,
   so the swap cannot move the page. */
.hello-signup {
  border: 2px solid var(--line-strong); border-radius: 3px;
  background: var(--panel);
  padding: 15px 18px;
  min-height: 79px;
  display: flex; align-items: center;
  box-sizing: border-box;
}
.hello-signup.is-done { border-color: var(--good); }

.hello-signup-empty {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; width: 100%;
}
.hello-signup-copy { font-size: 16px; color: var(--ink); flex: 1; min-width: 340px; line-height: 1.5; }
.hello-email {
  font-family: inherit; font-weight: 300; font-size: 15px;
  padding: 11px 13px; width: 220px;
  border: 2px solid var(--line-strong); border-radius: 3px;
  background: var(--panel-raised); color: var(--ink); outline: none;
  box-sizing: border-box;
}
.hello-email:focus { border-color: var(--accent); }
.hello-signup-btn {
  appearance: none; margin: 0; font-family: inherit;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 500; padding: 12px 22px;
  border: 2px solid var(--line-strong); border-radius: 3px;
  box-shadow: 3px 3px 0 var(--line-strong); cursor: pointer;
}
.hello-signup-btn:disabled { opacity: .6; cursor: default; }
.hello-signup-error { width: 100%; font-size: 13.5px; color: var(--accent); }

.hello-signup-done { display: flex; align-items: center; gap: 14px; width: 100%; }
.hello-done-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: 0 0 auto; }
.hello-done-line { font-size: 16px; color: var(--ink); flex: 1; }
.hello-signup-reset {
  appearance: none; margin: 0; padding: 0; font-family: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint); cursor: pointer;
}

/* The honeypot: parked far off canvas, still a real rendered field. Not
   display none on purpose, and not clip-path either, so a bot that checks
   only computed display and visibility sees an ordinary input. */
.hello-hp-wrap {
  position: absolute; left: -6000px; top: 0;
}

/* ── Phone, below 900px ────────────────────────────────────────────── */

@media (max-width: 899px) {
  .hello-top { padding: 14px 18px; }
  .hello-main { padding: 8px 18px 56px; gap: 52px; }

  .hello-display { font-size: 39px; white-space: normal; }

  /* Answer first, controls underneath. The DOM keeps controls first so
     the desktop split reads left to right; the column flips it. */
  .hello-card-body { flex-direction: column-reverse; }
  .hello-controls {
    width: auto; flex: 1 1 auto;
    border-right: 0; border-top: 2px solid var(--line);
    padding: 18px;
  }
  .hello-answer { padding: 18px; }
  .hello-head-time { font-size: 46px; }
  .hello-seg { align-self: stretch; }
  .hello-seg-btn { flex: 1; text-align: center; }
  .hello-stepper { align-self: stretch; }
  .hello-time { flex: 1; min-width: 0; font-size: 26px; }
  .hello-step { flex: 0 0 auto; padding: 12px 20px; }
  .hello-route-line { display: none; }
  .hello-route { border-top: 0; padding-top: 0; }

  .hello-leg { grid-template-columns: 76px 20px 1fr; column-gap: 10px; }
  .hello-leg-time { font-size: 15px; padding: 6px 0; }
  .hello-leg-body { padding: 6px 0; }
  .hello-leg-label { font-size: 14.5px; }
  .hello-leg-note { font-size: 12px; }

  .hello-card { box-shadow: 4px 4px 0 var(--line-strong); }

  .hello-example-note { flex-direction: column; gap: 6px; }
  .hello-preset-line { flex-direction: column; gap: 8px; }
  .hello-preset-line > span { font-size: 13.5px; }
  .hello-full-link { align-self: flex-start; font-size: 13.5px; }

  .hello-range-head { font-size: 26px; }
  .hello-tiles { grid-template-columns: 1fr; gap: 13px; }
  .hello-tile { padding: 17px; gap: 7px; box-shadow: 4px 4px 0 var(--line-strong); }
  .hello-tile-name { font-size: 23px; }
  .hello-tile-line { font-size: 13.5px; }

  .hello-signup { padding: 16px; min-height: 0; }
  .hello-signup-empty { flex-direction: column; align-items: stretch; gap: 13px; }
  .hello-signup-copy { min-width: 0; font-size: 15.5px; }
  .hello-email { width: 100%; padding: 13px; }
  .hello-signup-btn { padding: 14px; text-align: center; }
  .hello-signup-done { flex-direction: column; align-items: flex-start; gap: 11px; }
  .hello-done-line { font-size: 15px; }
}
