/* /order/: the checkout. Four steps as cards on the left, a sticky summary with Cloudy on the right; one
   column on phones. The page's own system (styles.css): ink, highlighter lime, paper white, Geist. */
.order { padding-bottom: 96px; }
.order-head { display: flex; flex-direction: column; gap: 18px; padding: 40px var(--gutter) 36px; }
.order-title { font-weight: 900; font-size: clamp(52px, 6.4vw, 96px); line-height: 0.94; letter-spacing: -0.06em; position: relative; z-index: 0; }
.order-head .lede { max-width: 560px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 40px; padding: 0 var(--gutter); }
.order-steps { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* A step: a card with its number, title and a tick that pops in once it is complete. */
.step { min-width: 0; margin: 0; padding: 24px 26px 26px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 30px 60px -36px rgba(0, 0, 0, 0.28); transition: box-shadow 0.25s ease; }
.step:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 30px 60px -36px rgba(0, 0, 0, 0.32); }
.step-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin-bottom: 18px; float: left; }
.step-head + * { clear: both; }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: "Geist Mono", monospace; font-weight: 600; font-size: 14px; }
.step-title { font-weight: 800; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; }
.step-tag { font-family: "Geist Mono", monospace; font-weight: 600; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); padding: 3px 7px; border-radius: 6px; background: var(--paper-2); }
.step-ok { margin-left: auto; transform: scale(0); transition: transform 0.4s cubic-bezier(.2, 1.8, .4, 1); }
.step.is-done .step-ok { transform: scale(1); }
.step.is-done .step-num { background: var(--lime); color: var(--ink); }
.step-lead { margin: 0 0 14px; font-size: 16px; line-height: 23px; color: var(--graphite); }
.step-note { margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--muted); }

/* Choices as tiles: the radio is the whole tile. */
.tiles { display: grid; gap: 10px; }
.plan-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ring); cursor: pointer; transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease; }
.tile:hover { box-shadow: inset 0 0 0 1.5px #bdbdb9; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: #fcfcfa; }
.tile:has(input:checked)::after { content: ""; position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.4 2.4 5-5.2' fill='none' stroke='%230A0A0A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; animation: tile-tick 0.35s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes tile-tick { from { transform: scale(0); } to { transform: none; } }
.tile:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.tile-media { flex-shrink: 0; display: grid; place-items: center; width: 92px; height: 74px; border-radius: 12px; background: var(--paper-2); }
.tile-media img { width: 84px; height: auto; }
.tile-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; padding-right: 22px; }
.tile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile-top b { font-weight: 700; font-size: 16px; line-height: 21px; }
.tile-price { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile-price small { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.tile-sub { font-size: 13px; line-height: 18px; color: var(--graphite); }
.plan-tile.is-have { grid-column: 1 / -1; min-height: 56px; }
.pay-marks { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pay-marks img { width: auto; display: block; }

/* Quantity: a stepper that squashes when it hits a limit. */
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.qty-label { font-weight: 600; font-size: 15px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ring); }
.qty-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06); transition: transform 0.12s ease; }
.qty-btn:hover { transform: scale(1.06); }
.qty-btn:active { transform: scale(0.92); }
.qty-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.qty-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.qty-n { min-width: 36px; text-align: center; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.qty.is-limit { animation: qty-limit 0.35s ease; }
@keyframes qty-limit { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.qty-note { font-size: 13px; color: var(--muted); }

/* The address form. */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.is-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; line-height: 18px; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: 500 16px/22px Geist, system-ui, sans-serif; box-shadow: inset 0 0 0 1.5px var(--ring); outline: none; transition: box-shadow 0.15s ease; -webkit-appearance: none; appearance: none; }
.field select { padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center no-repeat; }
.field input:hover, .field select:hover { box-shadow: inset 0 0 0 1.5px #bdbdb9; }
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.field.is-bad input, .field.is-bad select { box-shadow: inset 0 0 0 2px #d33a2c; }
.field.is-good input, .field.is-good select { box-shadow: inset 0 0 0 1.5px #9ccc6a; }
.field-err { min-height: 0; font-size: 13px; line-height: 17px; color: #c0321f; }
.phone { display: flex; align-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--ring); }
.phone:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.phone .dial { padding: 0 4px 0 14px; font: 600 16px/22px Geist, system-ui, sans-serif; color: var(--graphite); }
.phone input { box-shadow: none !important; padding-left: 6px; }

/* The summary: sticky, Cloudy on the device at the top, the lines, the total, Pay. */
.order-summary { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.summary-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 22px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 40px 80px -36px rgba(0, 0, 0, 0.35); }
.order-stage.stage { position: relative; width: 100%; height: 250px; margin-top: -4px; }
.order-stage .show-device { left: calc(50% - 116px); top: 4px; width: 232px; height: 238px; animation: show-float 6s ease-in-out infinite; }
.order-stage .device-shadow { left: calc(50% - 80px); top: 236px; width: 160px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), transparent); animation: show-shadow 6s ease-in-out infinite; }
.order-stage .show-fx { left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 3; }
.order-stage .show-fx:not(.is-front) { z-index: 0; }
.order-stage .device-cloudy { touch-action: none; cursor: grab; }
.order-stage .device-cloudy:active { cursor: grabbing; }
.lines { display: flex; flex-direction: column; }
.line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
.line dt { font-size: 15px; line-height: 20px; color: var(--graphite); }
.line dt small { margin-left: 4px; font-size: 12px; color: var(--muted); }
.line dd { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.line.is-total { padding-top: 14px; border-top: 2px solid var(--ink); }
.line.is-total dt { font-weight: 800; font-size: 18px; color: var(--ink); }
.line.is-total dd { font-weight: 900; font-size: 40px; line-height: 40px; letter-spacing: -0.04em; }
.line.is-plan { animation: line-in 0.4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes line-in { from { opacity: 0; transform: translateY(-6px); } }
.pay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 64px; padding: 10px 20px; border: 0; border-radius: 999px; background: #e7e7e4; color: #8a8a87; cursor: not-allowed; font: inherit; transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease; }
.pay-label { font-weight: 800; font-size: 20px; line-height: 24px; letter-spacing: -0.01em; }
.pay-hint { font-family: "Geist Mono", monospace; font-weight: 600; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.pay.is-ready { background: var(--lime); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 2px var(--ink), 0 18px 34px -16px rgba(0, 0, 0, 0.45); animation: pay-ready 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.pay.is-ready:hover { transform: translateY(-2px); }
.pay.is-ready:active { transform: scale(0.97); }
.pay:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@keyframes pay-ready { 0% { transform: scale(0.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.plan-go { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; font-size: 16px; }
.plan-go:hover { background: var(--paper-2); }
.pay-note { font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
.trust li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; line-height: 17px; color: var(--graphite); }
.trust svg { flex-shrink: 0; }
.trust a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.fine { font-size: 12.5px; line-height: 18px; color: var(--muted); text-align: center; }
.fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1099.98px) {
  .order-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .plan-tiles, .pay-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 859.98px) {
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
  .order-head { padding-top: 20px; }
}
@media (max-width: 640px) {
  .order-title { font-size: clamp(46px, 13.5vw, 64px); }
  .step { padding: 20px 16px 20px; border-radius: 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .tile-media { width: 72px; height: 60px; }
  .tile-media img { width: 66px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .summary-card { padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .step-ok, .tile, .pay, .qty-btn, .field input, .field select { transition: none; }
  .tile:has(input:checked)::after, .pay.is-ready, .line.is-plan, .qty.is-limit, .order-stage .show-device, .order-stage .device-shadow { animation: none; }
}
[data-sum].is-bump { display: inline-block; animation: sum-bump 0.45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sum-bump { 30% { transform: scale(1.12); } 100% { transform: none; } }
.pay.is-going { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { [data-sum].is-bump { animation: none; } }
.order [hidden] { display: none !important; }

/* /order/success/: Cloudy celebrating, then what happens next. */
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px var(--gutter) 40px; text-align: center; }
.done-hero .lede { max-width: 560px; }
.done-stage.stage { position: relative; width: 100%; max-width: 520px; height: 340px; }
.done-stage .show-device { left: calc(50% - 150px); top: 8px; width: 300px; height: 308px; animation: show-float 6s ease-in-out infinite; }
.done-stage .device-shadow { left: calc(50% - 100px); top: 318px; width: 200px; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), transparent); animation: show-shadow 6s ease-in-out infinite; }
.done-stage .show-fx { left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 3; }
.done-stage .show-fx:not(.is-front) { z-index: 0; }
.done-stage .device-cloudy { touch-action: none; cursor: grab; }
.next { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px var(--gutter) 0; }
.next-title { font-weight: 900; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.05em; }
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 1080px; max-width: 100%; }
.next-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 24px 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 30px 60px -36px rgba(0, 0, 0, 0.28); }
.next-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font-family: "Geist Mono", monospace; font-weight: 600; font-size: 14px; }
.next-card b { font-weight: 800; font-size: 21px; line-height: 26px; letter-spacing: -0.02em; }
.next-card p { font-size: 15px; line-height: 22px; color: var(--graphite); }
.next-card .pill { margin-top: auto; }
.next-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 859.98px) {
  .next-steps { grid-template-columns: minmax(0, 1fr); width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .done-stage .show-device, .done-stage .device-shadow { animation: none; }
}
