/* Start online: guide + agreement flow. Builds on styles.css tokens. */
.eyebrow, .page-hero .eyebrow, .section-head .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kite-deep); margin: 0 0 .8rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.start-hero { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.start-hero h1 { max-width: 15ch; }
.start-hero .page-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40rem; margin: 1.2rem 0 1.6rem; }
.chips { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 600; }
.chip-y { background: var(--kite); border-color: var(--kite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Guide */
.guide { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.guide-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.4rem 1.6rem; position: relative; }
.guide-card .illus { background: linear-gradient(180deg, var(--sky), var(--paper)); border-radius: 14px; margin-bottom: 1.1rem; padding: .6rem; }
.guide-card .illus svg { width: 100%; height: auto; }
.guide-card .knot { position: static; display: inline-grid; margin-bottom: .7rem; }
.guide-card h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.guide-card p { margin: .5rem 0 0; color: var(--ink-soft); font-size: .98rem; }

.faq { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 52rem; }
.faq h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); padding: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.faq summary:focus-visible { outline: 3px solid var(--kite); outline-offset: 4px; border-radius: 6px; }

/* Progress */
.wizard-section { background: var(--white); border-top: 1px solid var(--line); }
.progress { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.progress li { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; color: var(--mute, #7A8580); padding-top: .8rem; border-top: 3px solid var(--line); }
.progress li span { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .8rem; }
.progress li.is-current { color: var(--ink); border-top-color: var(--kite); }
.progress li.is-current span { background: var(--kite); border-color: var(--kite); }
.progress li.is-done { color: var(--ink); border-top-color: var(--ink); }
.progress li.is-done span { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Panels */
.wizard { position: relative; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.3rem, 3.5vw, 2.5rem); }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.panel-lead { color: var(--ink-soft); margin: .5rem 0 1.6rem; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.actions .btn-quiet { padding-left: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.form-error { color: #A3321C; font-weight: 600; min-height: 1.4em; margin: .8rem 0 0; }
.small-print { font-size: .9rem; color: var(--ink-soft); }
.hint { font-size: .88rem; color: var(--ink-soft); }
.label { font-weight: 600; font-size: .92rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A3321C; }

/* Step 1 */
.base-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.base-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.1rem; }
.base-card .ticks { margin: .9rem 0 0; font-size: .96rem; color: var(--ink-soft); }
.price { font-weight: 700; white-space: nowrap; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.feature { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 1.05rem 1.2rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: #AFC0B8; }
.feature input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.feature strong { display: block; font-size: 1.04rem; }
.feature small { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: .15rem; }
.feature:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kite) 45%, transparent); }
.feature:has(input:focus-visible) { outline: 3px solid var(--kite); outline-offset: 2px; }
.summary { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 1.5rem; position: sticky; top: 6rem; }
.summary h4 { margin: 0 0 1rem; font-size: 1.1rem; }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #2E4740; font-size: .95rem; }
.summary dt { color: #AFC0B8; }
.summary dd { margin: 0; font-weight: 600; white-space: nowrap; }
.summary .sum-discount dd { color: var(--kite); }
.summary .sum-total dt, .summary .sum-total dd { color: var(--paper); font-size: 1.15rem; font-weight: 800; }
.summary .sum-dep dd { color: var(--kite); font-size: 1.05rem; }
.sum-note { font-size: .82rem; color: #AFC0B8; margin: .9rem 0 1.1rem; }

/* Step 3: document */
.doc { background: var(--white); border: 1px solid var(--line); border-radius: 16px; max-height: min(62vh, 640px); overflow: auto; padding: clamp(1.2rem, 3vw, 2.2rem); margin-top: 1rem; font-size: .98rem; scroll-behavior: smooth; }
.doc:focus-visible { outline: 3px solid var(--kite); outline-offset: 2px; }
.doc h4 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0; }
.doc .doc-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 1rem; }
.doc .doc-meta span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; font-weight: 600; }
.doc .doc-meta span:first-child { background: var(--kite); border-color: var(--kite); }
.doc .intro { color: var(--ink-soft); }
.doc h5 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; display: flex; align-items: center; gap: .6rem; }
.doc h5 .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-grid; place-items: center; font-size: .85rem; flex: none; }
.doc table { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.doc th { text-align: left; font-weight: 600; color: var(--ink-soft); width: 34%; padding: .6rem .8rem .6rem 0; border-top: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
.doc td { padding: .6rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.doc ul { list-style: none; padding: 0; margin: 0; }
.doc li { position: relative; padding-left: 1.4rem; margin: .55rem 0; }
.doc li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--kite); transform: rotate(45deg); }
.doc .doc-end { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: .9rem; }
.read-hint { font-size: .9rem; color: var(--ink-soft); margin: .7rem 0 0; }
.read-hint.is-done { color: var(--moss); font-weight: 600; }

/* Step 4: signature */
.sigpad { position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; height: 190px; touch-action: none; }
.sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; cursor: crosshair; }
.sig-line { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 2.6rem; border-bottom: 1.5px solid var(--line); font-size: .8rem; color: var(--mute, #7A8580); padding-bottom: .2rem; pointer-events: none; }
.sigpad.has-ink .sig-line { color: transparent; }
.sig-tools { display: flex; gap: 1rem; flex-wrap: wrap; }
.sig-tools .btn-quiet { padding-left: 0; }
.consents { border: 0; padding: 0; margin: 1rem 0 0; display: grid; gap: .2rem; }
.consents .check { margin: .3rem 0; color: var(--ink); font-size: .96rem; }

/* Step 5 + done */
.done-badge svg { width: 56px; height: 56px; margin-bottom: 1rem; }
.pay-box { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 1.4rem 1.6rem; margin: .5rem 0 1rem; }
.pay-label { display: block; color: #AFC0B8; font-size: .9rem; }
.pay-amount { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.next-steps { padding-left: 1.3rem; margin: 0 0 1.6rem; display: grid; gap: .7rem; }

/* Loading overlay */
.loading { position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 80%, transparent); border-radius: 22px; display: grid; place-items: center; align-content: center; gap: .8rem; font-weight: 600; z-index: 5; }
.loading[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .doc { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; }
  .progress { gap: .3rem; }
  .progress li { font-size: 0; gap: 0; justify-content: center; }
  .progress li span { font-size: .8rem; }
  .feature { grid-template-columns: auto 1fr; }
  .feature .price { grid-column: 2; }
  .doc th { width: 40%; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions .btn-quiet { padding-left: 1rem; }
  .pay-box .btn { width: 100%; }
}
