/* Cloudo – Uppstartsformulär Telefoni
   Samma utseende som i Claude Design (Cloudo Design System). */

@font-face { font-family: "Aptos"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Aptos-Regular.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Aptos-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Aptos-Bold.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/Aptos-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Aptos"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/Aptos-ExtraBoldItalic.woff2") format("woff2"); }

:root {
  --brand: #EC6608; --brand-hover: #D25A06; --brand-soft: #FFE9D2; --brand-wash: #FFF6EC;
  --ink-900: #1F1F1F; --ink-700: #3C3C3B; --ink-500: #5A5A59; --ink-400: #8A8A88;
  --line: #EAEAE8; --line-strong: #D9D8D4; --paper: #FAF8F4; --cream: #FFF2D7; --white: #fff;
  --danger: #D23A2E;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --shadow-brand: 0 8px 22px rgba(236,102,8,.28);
  --font: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); font-family: var(--font); color: var(--ink-900); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2 { margin: 0; color: var(--ink-900); letter-spacing: -.02em; line-height: 1.1; }
a { color: var(--brand); } a:hover { color: var(--brand-hover); }
::selection { background: #FFCC99; color: var(--ink-900); }
:focus-visible { outline: 3px solid rgba(236,102,8,.45); outline-offset: 2px; }
[hidden] { display: none !important; }

textarea, input { font-family: inherit; color: var(--ink-900); }
textarea:focus, input:focus { outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(236,102,8,.25); }

.page { min-height: 100vh; background: var(--paper); position: relative; overflow: hidden; }
.bg-nimbus { position: absolute; top: -60px; right: -160px; width: 460px; opacity: .07; pointer-events: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; position: relative; display: flex; flex-direction: column; gap: 20px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.logo { height: 30px; width: auto; }
.top-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); text-align: right; }

.intro { display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.intro h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; line-height: 1.05; }
h1 em, h2 em { color: var(--brand); }
.accent { width: 56px; height: 6px; border-radius: 999px; background: var(--brand); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-500); max-width: 620px; text-wrap: pretty; }
.note { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-700); max-width: 620px; text-wrap: pretty; padding: 14px 18px; background: var(--cream); border-radius: 14px; }

.stack { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 3px rgba(31,31,31,.06); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card.gap24 { gap: 24px; } .card.gap22 { gap: 22px; }
.card.cream { background: var(--cream); box-shadow: none; gap: 16px; }
.card h2 { font-size: 22px; font-weight: 700; }
.step { display: flex; align-items: center; gap: 12px; }
.num { width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.num.solid { background: var(--brand); color: #fff; }
.muted { margin: 0; font-size: 16px; color: var(--ink-500); }

.supplier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.supplier { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 2px solid var(--line-strong); background: #fff; cursor: pointer; font-family: inherit; transition: all .2s var(--ease-out); }
.supplier .box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--line-strong); background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.supplier-label { font-size: 18px; font-weight: 700; color: var(--ink-900); }
.supplier[aria-checked="true"] { border-color: var(--brand); background: var(--brand-wash); }
.supplier[aria-checked="true"] .box { border-color: var(--brand); background: var(--brand); }
.supplier[aria-checked="true"] .box::after { content: "✓"; }

.q { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.q-label { font-size: 17px; font-weight: 600; color: var(--ink-900); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-900); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pill.wide { padding: 0 24px; }
.pill[aria-checked="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }

textarea { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15px; line-height: 1.5; resize: vertical; background: #fff; width: 100%; }

.cc-head { display: flex; flex-direction: column; gap: 8px; }
.progress { font-size: 14px; color: var(--ink-400); }
.cc-list { display: flex; flex-direction: column; gap: 22px; }
.cc-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.cc-n { font-size: 14px; font-weight: 700; color: var(--brand); padding-top: 2px; font-variant-numeric: tabular-nums; }
.cc-q { font-size: 16px; font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.cc-item textarea { grid-column: 2; margin-top: 6px; }

.contacts { display: flex; flex-direction: column; gap: 12px; }
.contact { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.contact-fields { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact input { height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 16px; font-weight: 400; background: #fff; width: 100%; }
.remove { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-500); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.remove:hover { border-color: var(--danger); color: var(--danger); }
.add { align-self: flex-start; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px dashed var(--brand); background: #fff; color: var(--brand); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.add:hover { background: var(--brand-wash); }

.submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
.err { font-size: 14px; color: var(--danger); font-weight: 600; }
.hint { font-size: 14px; color: var(--ink-400); }

/* Knapp – Cloudo Design System Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 28px; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .2s var(--ease-out), filter .2s var(--ease-out), background .2s var(--ease-out); }
.btn:hover:not(:disabled) { filter: brightness(.94); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; }
.btn-secondary { background: #fff; color: var(--ink-900); border: 1px solid var(--line-strong); padding: 12px 22px; font-size: .9375rem; gap: 8px; }
.btn-secondary:hover { color: var(--ink-900); }
.btn-sm { padding: 8px 16px; font-size: .875rem; gap: 6px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.send-fail { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid #F2C4BF; background: #FDF1F0; border-radius: 14px; font-size: 15px; color: var(--ink-700); max-width: 620px; }
.send-fail strong { color: var(--danger); }
.fail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.copied { font-size: 14px; color: #2E9B5B; font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 40px 32px; align-items: center; text-align: center; gap: 14px; }
.done:focus { outline: none; }
.done-img { width: 150px; height: auto; }
.done-title { font-size: 30px; font-weight: 800; }
.done-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-500); max-width: 480px; }

@media (max-width: 520px) {
  .wrap { padding: 28px 16px 64px; }
  .card { padding: 22px 18px; }
  .top-label { font-size: 11px; letter-spacing: .14em; }
  .contact .remove { width: 100%; }
}
