/* huskapp.no (tickets M1 and 6.2). The app's look on the web: Glød, white by day as the app has it
   since 2026-10-26 (John: "mer clean med mer hvit, som i stil med hvit app ikonene", and no glow:
   "tacky"). A white page with only a breath of peach at the very top, white cards with a warm hairline, the
   logo's raspberry for the accent and links, the back house's pink-orange for the one button.
   After dark the app's aubergine. System fonts, calm inset grouped lists, dark mode. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --wash: #fff8f4;
  --surface: #ffffff;
  --edge: #efe3e5;
  --text: #000000;
  --muted: #6e6e73;
  --separator: #efe3e5;
  --fill: #f4f0f0;
  --accent: #a8104c;
  --accent-soft: #fbe4eb;
  --on-accent: #ffffff;
  --button: linear-gradient(90deg, #f45f65, #e8336f);
  --danger: #d70015;
  --radius: 12px;
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-display:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141016;
    --wash: #1d1520;
    --surface: #1e1820;
    --edge: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: #b6a6b0;
    --separator: rgba(255, 255, 255, 0.12);
    --fill: #2e2230;
    --accent: #ff8fb0;
    --accent-soft: #4a1e33;
    --on-accent: #ffffff;
    --danger: #ff6961;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Only a breath of the look's colour at the very top (John, 2026-10-26: the glow was too much). */
  background: linear-gradient(var(--wash), var(--bg) 360px) no-repeat, var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap.narrow {
  max-width: 640px;
}

/* ---- Header and footer ---- */

.top {
  padding: 14px 0 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font: 800 23px/1 var(--font-display);
  letter-spacing: -0.035em;
}

/* The glass houses about 1.2 times the word's cap height, as the app sets them beside «husk». */
.brand .mark {
  width: 28px;
  height: 28px;
}




.footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- Hero ---- */

.hero {
  padding: 20px 0 8px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero h1,
.checklist h1,
.flow h1,
.prose h1 {
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.hero .lede {
  max-width: 34ch;
}

/* The lock screen: a phone top that runs off the bottom of its frame, as in the ads. */
.phone {
  margin: 0 auto;
  width: min(320px, 86vw);
  height: 236px;
  border-radius: 44px 44px 0 0;
  padding: 10px 10px 0;
  background: #16171a;
  box-shadow: 0 0 0 2px #d7d8dd;
  overflow: hidden;
}

.phone .screen {
  height: 100%;
  border-radius: 35px 35px 0 0;
  padding: 44px 12px 0;
  background: linear-gradient(#fff6f1, #ffffff 60%);
  color: #1c1c1e;
}

.phone .time {
  text-align: center;
  font: 700 56px/1 var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.phone .note {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 1px 10px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 4px 14px rgba(60, 20, 50, 0.08);
  color: #111;
  text-align: left;
}

.phone .app-icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(90, 16, 48, 0.12);
  display: grid;
  place-items: center;
}

.phone .app-icon .mark {
  width: 30px;
  height: 30px;
}




.phone .note b {
  font-size: 15px;
}

.phone .note small {
  font-size: 13px;
  color: #555a66;
}

.phone .note .text {
  grid-column: 2 / -1;
  font-size: 15px;
  line-height: 1.3;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  /* Capsules, as in the app (DESIGN.md radii). */
  border-radius: 999px;
  background: var(--button);
  color: var(--on-accent);
  box-shadow: 0 8px 22px rgba(232, 51, 111, 0.3);
  font: 600 17px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.button:active {
  filter: brightness(0.95);
}

.button[aria-disabled='true'] {
  opacity: 0.6;
  cursor: progress;
}

.button.wide {
  width: 100%;
}

/* ---- Sections and inset grouped lists ---- */

.block {
  padding: 28px 0 4px;
}

.block h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.group {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--edge);
  overflow: hidden;
}

.group > li,
.group > .choice {
  position: relative;
  padding: 13px 16px;
}

.group > li + li::before,
.group > .choice + .choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  border-top: 1px solid var(--separator);
}

.features li b {
  font-weight: 600;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -13px -16px;
  padding: 13px 16px;
  text-decoration: none;
  font-weight: 600;
}

.links a:hover span:first-child {
  text-decoration: underline;
}

/* The link fills its row, so its focus ring goes inside, where the list does not clip it. */
.links a:focus-visible {
  outline-offset: -3px;
}

.chev {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.proof li {
  display: flex;
  gap: 10px;
}

.tick {
  color: var(--accent);
  font-weight: 700;
}

.fine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.later,
.aside {
  color: var(--muted);
}

.aside {
  margin-top: 12px;
  font-size: 15px;
}

.callout {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Signup ---- */

.signup .lede {
  font-size: 17px;
  margin-bottom: 16px;
}

.join {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.question {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.question legend {
  float: left;
  width: 100%;
  padding: 13px 16px 11px;
  font-weight: 600;
  border-bottom: 1px solid var(--separator);
}

.question legend + .choice::before {
  display: none;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  clear: both;
}

.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px/1.2 var(--font);
}

.field input::placeholder {
  color: var(--muted);
}

.field:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.field input:focus-visible {
  outline: none;
}

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

/* Empty, the live region stays in the page for screen readers but takes no room. */
.status:empty {
  position: absolute;
}

.status {
  color: var(--danger);
  font-weight: 600;
}

.sent {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Focus moves to these so screen readers read them out; they are not controls, so no ring. */
.sent:focus,
h1[tabindex='-1']:focus {
  outline: none;
}

.sent-title {
  font: 700 22px/1.25 var(--font-display);
}

/* ---- «Stenge hytta» ---- */

.crumb {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.checklist .lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text);
}

.source {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  margin: 22px 0 28px;
  counter-reset: none;
}

.steps li {
  padding: 16px;
}

.steps h2 {
  font-size: 19px;
  margin: 0 0 6px;
}

.steps .n {
  font-variant-numeric: tabular-nums;
}

.notes li {
  font-size: 16px;
}

.checklist > .wrap > h2 {
  margin-top: 8px;
}

.sources {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.sources summary {
  cursor: pointer;
  font-weight: 600;
}

.sources ul {
  padding-left: 18px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.sources li {
  padding: 3px 0;
}

.sources a {
  display: inline-block;
  min-height: 24px;
}

.husk-line p {
  color: var(--muted);
}

.husk-line b {
  color: var(--text);
}

/* ---- Text pages ---- */

.prose h1 {
  margin-bottom: 12px;
}

.prose h2 {
  margin: 30px 0 10px;
}

.prose h3 {
  font-size: 17px;
  margin: 20px 0 8px;
}

.prose p,
.prose ul {
  margin: 0 0 12px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

/* ---- Confirm, leave and result pages ---- */

.flow {
  padding: 48px 0 24px;
}

.flow [data-state] > * + *,
.flow .wrap > * + * {
  margin-top: 14px;
}

.checklist-download {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Wider screens ---- */

@media (min-width: 900px) {
  .hero {
    padding: 48px 0 16px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 48px;
  }

  .hero h1 {
    font-size: 54px;
    line-height: 1.04;
  }

  .phone {
    height: 330px;
    width: 340px;
  }

  .phone .screen {
    padding-top: 52px;
  }

  .phone .time {
    font-size: 68px;
    margin-bottom: 28px;
  }

  .block {
    padding-top: 40px;
  }

  .block > .wrap:not(.narrow) > .group,
  .block > .wrap:not(.narrow) > .fine,
  .block > .wrap:not(.narrow) > h2,
  .block > .wrap:not(.narrow) > p,
  .block > .wrap:not(.narrow) > .aside,
  .block > .wrap:not(.narrow) > .lede,
  .block > .wrap:not(.narrow) > form,
  .block > .wrap:not(.narrow) > .sent {
    max-width: 640px;
  }

  .checklist h1,
  .flow h1,
  .prose h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: filter 0.15s ease;
  }
}
