/* ice9.cool. Calm, light, one accent: the mint the case is printed in.
   One stylesheet, no inline styles anywhere (the security policy refuses them). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #f6f8f8; --surface: #ffffff; --ink: #0e1b1c; --ink-2: #3d4c4d; --line: #e1e7e7; --edge: #8a9a9b;
  /* the case colour. A starting value: match it by eye against a real case. Text on it is always --ink. */
  --mint: #45d9c5; --mint-deep: #2fa596; --mint-wash: #e7f3f1;
  /* mint is too pale to read as text on a light ground, so words and small marks use this */
  --teal: #0b5f58;
  --alarm: #b3261e; --night: #0e1b1c; --night-2: #c9d6d5;
  --wide: 1120px; --gutter: 24px; --measure: 38rem;
  --section: clamp(64px, 9vw, 120px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }

/* ---------- type: one family, regular and medium, nothing bold ---------- */
.display { font-size: clamp(40px, 7vw, 84px); line-height: 1.03; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.heading-lg { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.heading { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.sub { font-size: 19px; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.kicker { font-size: 15px; font-weight: 500; color: var(--teal); }

/* ---------- frame ---------- */
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { margin-top: var(--section); display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 34em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- header and footer ---------- */
.skip { position: absolute; left: var(--gutter); top: 10px; z-index: 5; transform: translateY(-250%); }
.skip:focus { transform: none; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; color: var(--ink); }
.wordmark::before { content: ""; width: 22px; height: 16px; border-radius: 5px; background: var(--mint); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-foot { margin-top: var(--section); border-top: 1px solid var(--line); }
.site-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 36px 56px; font-size: 14px; color: var(--ink-2); }
.site-foot-in > div { display: flex; flex-direction: column; gap: 8px; max-width: 36em; }
.foot-mark { font-size: 17px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 40px; align-content: start; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }

/* ---------- buttons: pills. One mint one per screen ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-mint { min-height: 52px; padding: 0 28px; background: var(--mint); border-color: var(--mint); font-weight: 600; }
.btn-mint:hover { background: #5fe0cf; border-color: #5fe0cf; }
.btn-dark { min-height: 44px; padding: 0 18px; background: var(--ink); border-color: var(--ink); color: #ffffff; font-size: 15px; }
.btn-dark:hover { background: #24393b; border-color: #24393b; color: #ffffff; }
.link-go { font-weight: 500; }

/* ---------- home ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.hero .display { max-width: 12em; }
.hero .lead { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 8px; }
.page-head { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(40px, 7vw, 88px) 0; max-width: 40rem; }
.page-head .display { font-size: clamp(36px, 5.6vw, 64px); }

/* the box itself, drawn until there is a photograph of the new case */
.stage { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(48px, 9vw, 120px) 24px; background: var(--mint-wash); border-radius: 32px; }
.box { width: min(100%, 340px); aspect-ratio: 3 / 2; display: grid; place-items: center; border-radius: 34px; background: var(--mint); box-shadow: 0 16px 0 var(--mint-deep), 0 60px 70px -30px rgba(14, 27, 28, 0.45); font-size: clamp(56px, 16vw, 92px); font-weight: 600; letter-spacing: 0.06em; line-height: 1; color: #10302d; }

.facts { display: grid; gap: 40px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.facts > div { display: flex; flex-direction: column; gap: 10px; }

.card { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--edge); color: var(--ink); }
.door { padding: 32px; }
.door .link-go { margin-top: 12px; color: var(--teal); }

/* rows in one card: which aircons, and anything else that is read rather than pressed */
.rows { padding: 8px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding-block: 20px; }
.rows > div + div { border-top: 1px solid var(--line); }
.rows .heading { font-size: 19px; }
.rows .heading span { font-weight: 400; color: var(--ink-2); }
.rows-text > div { display: grid; gap: 6px 32px; }
@media (min-width: 760px) { .rows-text > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }

/* status: a shape and a word, never colour alone */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--teal); }
.status-open { color: var(--ink-2); }
.status-open::before { background: none; border: 2px solid var(--ink-2); }

/* the dark panel: security */
.night { display: flex; flex-direction: column; gap: 36px; padding: clamp(32px, 6vw, 72px); background: var(--night); color: #ffffff; border-radius: 32px; }
.night .title { font-size: clamp(28px, 4vw, 44px); max-width: 16em; }
.night .facts { gap: 32px 48px; }
.night .heading { font-size: 19px; color: var(--mint); }
.night p { color: var(--night-2); }
.night a { color: #ffffff; }
.night :focus-visible { outline-color: #ffffff; }

.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.closing .title { font-size: clamp(34px, 5.4vw, 64px); }

/* ---------- setup: numbered steps ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 16px; max-width: 46rem; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 28px); row-gap: 8px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.steps > li::before { content: counter(step); grid-row: 1 / span 6; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--mint); font-weight: 600; }
.steps > li > * { grid-column: 2; }
.callout { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 16px 18px; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.callout strong { font-weight: 600; }

/* ---------- contact form ---------- */
.contact { display: grid; gap: 32px clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 7vw, 88px); }
@media (min-width: 920px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.contact-intro .display { font-size: clamp(36px, 5.6vw, 64px); }
.promises { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.form-card { gap: 24px; }
@media (max-width: 359px) { .form-card { padding: 0; background: none; border: 0; } }
form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 15px; font-weight: 500; }
.opt { font-weight: 400; color: var(--ink-2); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--edge); border-radius: 12px; font: inherit; font-size: 17px; line-height: 24px; }
textarea.input { min-height: 9rem; resize: vertical; }
.input::placeholder { color: #6b7a7b; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.hint { font-size: 15px; color: var(--ink-2); }
.error { font-size: 15px; color: var(--alarm); }
.field-error .input { border-color: var(--alarm); }
.field-pair { display: grid; gap: 24px; }
@media (min-width: 640px) { .field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choices { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.choices legend { padding: 0; margin-bottom: 10px; }
.choice-row { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span { flex: 1; display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--edge); border-radius: 12px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.choice input:hover + span { border-color: var(--ink); }
/* selected: a dark edge and a mint fill. The edge carries it; the fill is a bonus. */
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--mint-wash); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sending .btn-mint { opacity: 0.6; cursor: progress; pointer-events: none; }
.result { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; }
.result-bad { border-color: var(--alarm); box-shadow: inset 0 0 0 1px var(--alarm); }
.result:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- plain pages: privacy, security, not found ---------- */
.prose { display: flex; flex-direction: column; gap: 32px; max-width: var(--measure); }
.prose > div { display: flex; flex-direction: column; gap: 8px; }
.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: clamp(64px, 12vw, 160px) 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero-actions .link-go { display: inline-flex; align-items: center; min-height: 44px; }
