/* BitsCable Home. Design C "Quick Start" with the stacked-row budget picker. */
:root {
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ground: #EEF2EC; --card: #fff; --ink: #14201A; --muted: #46544B;
  --line: #7A8D81; --accent: #3DDC6B; --tint: #EAFBF0; --danger: #B3261E;
}
* { box-sizing: border-box; margin: 0; }
body { font: 16px/1.5 var(--font); color: var(--ink); background: var(--ground); min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 520px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }

.top { display: flex; align-items: center; justify-content: space-between; padding: .25rem 0 1rem; }
.brand { display: block; line-height: 0; border-radius: 50%; }
.top img { display: block; border-radius: 50%; }
.pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; background: var(--card); border-radius: 99px; font-weight: 600; font-size: .9rem; text-decoration: none; }

h1 { font-size: 2.1rem; line-height: 1.1; letter-spacing: -.02em; margin: .75rem 0 .5rem; }
.lede { color: var(--muted); margin-bottom: 1.25rem; }

/* Switch: Quote / Book / Ask */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--card); border-radius: 14px; margin-bottom: .9rem; }
.seg button { min-height: 48px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--ink); font-weight: 700; }

.card { background: var(--card); border-radius: 18px; padding: 1.15rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field[hidden], .hp[hidden], [hidden] { display: none !important; }
label, legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 48px; font: inherit; color: var(--ink); background: #fff;
  padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 12px; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
textarea { min-height: 120px; resize: vertical; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: .9rem; margin-top: .3rem; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Budget: stacked rows with a round tick */
.budget .row { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: 0 .9rem; margin: 0 0 .5rem; border: 2px solid var(--line); border-radius: 14px; font-weight: 600; cursor: pointer; }
.budget .row input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tick { flex: none; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.row.is-on { border-color: var(--ink); background: var(--tint); font-weight: 700; }
.row.is-on .tick { border-color: var(--accent); background: var(--accent); }
.row.is-on .tick::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.row:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.field.bad .row { border-color: var(--danger); }

.btn { width: 100%; min-height: 52px; padding: .75rem 1.25rem; border: 0; border-radius: 14px; background: var(--accent); color: var(--ink); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--quiet { background: transparent; border: 2px solid var(--line); width: auto; min-height: 44px; font-size: 1rem; }
.status { margin-top: .9rem; padding: .8rem 1rem; border-radius: 12px; background: #FBE9E7; color: var(--danger); }
.status:empty { display: none; }
.fine { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
.fine a { font-weight: 600; }

.done h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.done p { margin-bottom: 1rem; color: var(--muted); }

.links { margin-top: 1rem; background: var(--card); border-radius: 18px; overflow: hidden; }
.link { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: .6rem 1.1rem; text-decoration: none; font-weight: 600; }
.link + .link { border-top: 1px solid #E3E9E4; }
.link--note { font-weight: 400; color: var(--muted); font-size: .95rem; }
.foot { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .seg button, .btn, .row, .tick { transition: background-color .15s, border-color .15s; }
  .card:not([hidden]) { animation: rise .2s ease-out; }
  @keyframes rise { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
