/*
  Direction
  Product:   Appform, Liovall's iOS studio: native apps, web apps made ready for iPhone, monthly app care, fixed price.
  Character: exact, calm, accountable.
  World:     a clean white studio page: large quiet type, hairlines, tinted cards, one dark action colour.
  Source:    Figma file vTCC2F7lUxZ3QeQpI91y7d, frame 21:4. Greys that fell under 4.5:1 are darkened below.
*/
:root {
  --ink: #141414;
  --dark: #171717;
  --dark-hover: #333333;
  --accent: #1F4F99;
  --accent-hover: #143A73;
  --text: #141414;
  --text-2: #5A6168;
  --text-muted: #5C636A;
  --error: #B42318;

  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --card-blue: #F4F7FC;
  --card-green: #F2F7F4;
  --card-coral: #FCF5F0;
  --box: #EBEEF2;
  --note: #F3F5F8;
  --btn-soft: #F3F3F3;
  --btn-soft-hover: #E8E9EB;
  --line: #E3E5E8;
  --line-strong: #DDE1E5;
  --card-line: #E1E4E8;
  --field-line: #858C95;

  --radius: 8px;
  --radius-card: 18px;
  --gutter: 16px;
  --measure: 58ch;
  --header-h: 4.25rem;
  --max: calc(77.5rem + 2 * var(--gutter));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (min-width: 40rem) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 75rem) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:not(.btn):hover {
  color: var(--accent-hover);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-200%);
  background: var(--dark);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0.5rem);
  color: #FFFFFF;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header: a floating white capsule. The sticky wrapper is transparent and pulled up by its own
   height so the hero starts at the top of the page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem var(--gutter) 0;
  margin-bottom: calc(-1 * var(--header-h));
  pointer-events: none;
}

main:not(:has(.hero)) {
  padding-top: var(--header-h);
}

.header-inner {
  pointer-events: auto;
  max-width: 77.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-radius: 1.5rem;
}

@media (min-width: 48rem) {
  :root {
    --header-h: 6.5rem;
  }

  .site-header {
    padding: 1.5rem var(--gutter) 0;
  }

  .header-inner {
    min-height: 5rem;
    padding: 0.5rem 1.4375rem 0.5rem 1.8125rem;
  }
}

.brand {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: baseline;
  gap: 0 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25;
  min-height: 2.75rem;
  align-content: center;
  padding-block: 0.25rem;
}

.brand strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.brand-by {
  color: var(--text-muted);
}

@media (min-width: 48rem) {
  .brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 0;
  }

  .brand strong {
    display: block;
    font-size: 1.6875rem;
    line-height: 1.2;
  }

  .brand-by {
    display: block;
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
}

.nav-list a:hover {
  color: var(--ink);
  background: var(--btn-soft);
}

/* Active section: aria-current marks it, :target covers an anchor jump. */
.nav-list a[aria-current],
body:has(#tjanster:target) .nav-list a[href="#tjanster"],
body:has(#pris-och-leverans:target) .nav-list a[href="#pris-och-leverans"],
body:has(#fragor:target) .nav-list a[href="#fragor"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.nav-wide {
  display: none;
}

.nav-menu {
  position: relative;
  max-width: 100%;
}

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu .nav-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: max-content;
  min-width: min(14rem, calc(100vw - 2 * var(--gutter)));
  max-width: calc(100vw - 2 * var(--gutter));
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
}

.nav-menu .nav-list a {
  padding: 0.75rem 1rem;
}

@media (min-width: 48rem) {
  .nav-wide {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .nav-wide .nav-list {
    align-items: center;
    gap: 0.75rem;
  }

  .nav-wide .nav-list a {
    padding: 0.5rem 1.25rem;
  }

  /* The last entry is the dark call to action */
  .nav-wide .nav-list li:last-child {
    margin-left: 0.75rem;
  }

  .nav-wide .nav-list li:last-child a {
    display: flex;
    align-items: center;
    min-height: 3.125rem;
    padding: 0.5rem 2.5rem;
    background: var(--dark);
    color: #FFFFFF;
    font-size: 0.875rem;
    text-decoration: none;
  }

  .nav-wide .nav-list li:last-child a:hover {
    background: var(--dark-hover);
    color: #FFFFFF;
  }
}

/* Layout and type */
main {
  display: block;
}

section {
  padding-block: 3.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 36rem;
}

.muted {
  color: var(--text-muted);
}

/* Hero: centred headline on a quiet dot grid, four app tiles at the sides */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding-block: calc(var(--header-h) + 3rem) 2.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, #D9DCE1 1px, transparent 1.5px) 0 0 / 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero > .wrap {
  flex: 1;
  display: flex;
}

.hero-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.hero-copy {
  max-width: 62rem;
}

.hero h1 {
  max-width: 6.6em;
  margin-inline: auto;
  font-size: clamp(2.75rem, 13vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
}

.hero-copy .lead {
  margin-inline: auto;
  margin-bottom: 0;
  max-width: min(45rem, var(--measure));
  font-size: 1.0625rem;
}

.hero .actions {
  justify-content: center;
}

.hero-tiles {
  display: none;
}

/* The price line sits at the foot of the hero as a quiet caption */
.price-panel {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.price-panel p,
.price-panel-amount {
  display: inline;
  margin: 0;
}

.price-panel-label::after {
  content: " ";
}

.price-panel-amount,
.price-panel-vat {
  font: inherit;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.75rem 1.5rem;
  min-height: 3rem;
  border: 0;
  border-radius: 12px;
  background: var(--dark);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:hover {
  background: var(--dark-hover);
  color: #FFFFFF;
}

.btn:active {
  transform: scale(0.98);
}

/* Arrow glyphs are decoration: empty alternative text keeps them out of the accessible name */
.btn-primary::after,
#tjanster .card .btn::after {
  content: "\2197";
  content: "\2197" / "";
}

.hero .btn-secondary::after {
  content: "\2193";
  content: "\2193" / "";
}

.btn-secondary {
  background: var(--btn-soft);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--btn-soft-hover);
  color: var(--ink);
}

.hero .btn {
  min-height: 3.5rem;
  padding: 0.875rem 2rem;
  border-radius: 16px;
  font-size: 1rem;
}

@media (max-width: 29.99rem) {
  .actions .btn {
    flex: 1 1 100%;
  }
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(1.25rem, 5vw, 1.625rem);
  display: flex;
  flex-direction: column;
  background: var(--card-blue);
  border-radius: var(--radius-card);
}

#tjanster .card:nth-child(2) {
  background: var(--card-green);
}

#tjanster .card:nth-child(3) {
  background: var(--card-coral);
}

.card p,
.card ul {
  max-width: var(--measure);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.card ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.card li::marker,
.process li::marker {
  color: var(--text-muted);
}

.card .btn {
  margin-top: auto;
  align-self: stretch;
  min-height: 3.125rem;
}

#tjanster .card .btn {
  background: var(--dark);
  color: #FFFFFF;
}

#tjanster .card .btn:hover {
  background: var(--dark-hover);
  color: #FFFFFF;
}

/* Flat link inside a guide card: no second box, label and 44px target unchanged */
.guide .card .btn-secondary {
  align-self: flex-start;
  padding-inline: 0;
  min-height: 2.75rem;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.guide .card .btn-secondary:hover {
  background: none;
  color: var(--accent-hover);
}

.card h3 {
  font-size: 1.5625rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.card > p:first-of-type {
  color: #333333;
  font-size: 1rem;
  font-weight: 500;
}

.more {
  margin: 0 0 1.25rem;
}

.more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  color: var(--accent);
  font-weight: 600;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s var(--ease);
}

.more[open] summary::after {
  transform: rotate(-135deg);
}

.more summary:hover {
  color: var(--accent-hover);
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .cards > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.625rem;
  }

  .cards > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  /* All three services are shown open on wide screens, as in the design */
  #tjanster .more summary {
    display: none;
  }
}

/* Prices: three cards, the first one dark */
.prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}

.price-row {
  padding: 1.5rem 1.625rem;
  background: #FFFFFF;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
}

.price-row:first-child {
  background: #191919;
  border-color: #191919;
  color: #CCCCCC;
}

.price-row dt {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.price-row:first-child dt {
  color: #FFFFFF;
}

.price-row dd {
  margin: 0.75rem 0 0;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.price-row:first-child dd {
  color: #CCCCCC;
}

.price-row .amount {
  display: block;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E5E7E9;
  color: var(--ink);
  font-size: clamp(2rem, 8.5vw, 2.5rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.price-row:first-child .amount {
  color: #FFFFFF;
  border-bottom-color: #3B3B3B;
}

.price-row .vat {
  display: block;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.price-row:first-child .vat {
  color: #BBBBBB;
}

/* "Bra att veta" box */
.prices + .muted {
  max-width: none;
  margin: 0;
  padding: 1.25rem 1.375rem;
  padding-inline-end: max(1.375rem, calc(100% - var(--measure)));
  background: var(--box);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 40rem) {
  .prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prices > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60rem) {
  .prices > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.625rem;
    margin-bottom: 2.25rem;
  }

  .price-row {
    padding-block: 1.625rem;
  }
}

/* Steps: generic vertical list for the guides */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  max-width: 44rem;
  color: var(--text-2);
}

.steps li {
  position: relative;
  margin: 0;
  padding: 0.25rem 0 1.75rem 3.5rem;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--btn-soft);
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.75rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--line-strong);
}

.steps strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Vägen till din app: numbered columns divided by a hairline */
#vagen .steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: none;
}

#vagen .steps li {
  padding: 0;
}

#vagen .steps li::before {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  content: counter(step, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

#vagen .steps li::after {
  display: none;
}

#vagen .steps strong {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

#vagen .steps li {
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (min-width: 36rem) {
  #vagen .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (min-width: 48rem) {
  #vagen .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 75rem) {
  #vagen .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.375rem;
  }
}

/* Before / after */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.compare h2,
.contact-grid h2 {
  margin-bottom: 1.5rem;
}

.compare .lead {
  font-size: 1.125rem;
  color: var(--text-2);
}

@media (min-width: 75rem) {
  .compare {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3.5rem;
  }

  .compare h2 {
    font-size: 3rem;
  }
}

.illustration {
  margin: 0;
}

.illustration-label {
  display: block;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.6875rem;
}

.flow svg.mock {
  display: block;
  height: auto;
}

.mock-web {
  width: min(18.3125rem, 100%);
}

.mock-phone {
  width: min(16.125rem, 100%);
}

.illustration figcaption {
  max-width: 37rem;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.illustration figcaption strong {
  color: var(--text-2);
  font-weight: 600;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 40rem) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.process h3 {
  margin-bottom: 1rem;
  font-size: 1.375rem;
  line-height: 1.45;
}

.process ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.process li + li {
  margin-top: 0.6875rem;
}

/* FAQ: hairline-separated rows, a minus sign at the right edge of each question */
.faq-list {
  min-width: 0;
}

.faq-item {
  padding-block: 1.625rem;
  border-bottom: 1px solid var(--line-strong);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
}

.faq-item h3::after {
  content: "\2212";
  content: "\2212" / "";
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: var(--measure);
}

@media (min-width: 60rem) {
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    column-gap: 4rem;
    align-items: start;
  }

  .faq > h2 {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    font-size: 2.8125rem;
  }
}

/* Form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(39.75rem, 62%));
    gap: 4rem;
    align-items: start;
  }

  .contact-grid h2 {
    font-size: 3.125rem;
  }
}

.contact-grid p {
  max-width: var(--measure);
  color: var(--text-2);
  font-size: 1.0625rem;
}

.contact-grid > div:first-child a {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-grid p.muted {
  font-size: 0.9375rem;
}

.form {
  min-width: 0;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: 19px;
}

@media (min-width: 48rem) {
  .form {
    padding: 1.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .form > * {
    grid-column: 1 / -1;
  }

  .form > .field:has(#name),
  .form > .field:has(#email) {
    grid-column: auto;
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label,
.form legend {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

.form legend {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field label {
  color: var(--text-2);
}

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

.hint {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="url"],
.form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.75rem;
  min-height: 2.9375rem;
  transition: border-color 0.15s var(--ease);
}

.form input:hover,
.form textarea:hover {
  border-color: var(--text-2);
}

.form input:focus-visible,
.form textarea:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}

.form textarea {
  min-height: 6.125rem;
  resize: vertical;
}

.form fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}

.radio-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.radio-list label {
  display: flex;
  min-width: 0;
  overflow-wrap: anywhere;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  min-height: 2.75rem;
  background: #FFFFFF;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.radio-list label:hover {
  border-color: var(--text-2);
}

.radio-list label:has(input:checked) {
  background: var(--card-blue);
  border-color: var(--accent);
  color: var(--ink);
}

.radio-list input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
  margin: 0;
  flex: none;
}

@media (min-width: 30rem) {
  .radio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-error {
  margin: 0.5rem 0 0;
  color: var(--error);
  font-weight: 500;
  font-size: 0.875rem;
}

.field-error:empty {
  display: none;
}

.form-status {
  margin: 0 0 1rem;
}

.form-status:empty {
  display: none;
}

.form-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--note);
  border-radius: 13px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  text-align: center;
}

.form-actions .btn {
  min-height: 3.125rem;
  border-radius: 11px;
}

.form-actions a {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-2);
  font-size: 0.875rem;
}

/* Honeypot: off-screen, not rendered for assistive tech */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Prose pages */
.prose {
  max-width: min(46rem, var(--measure));
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.draft-banner {
  background: var(--dark);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 2rem;
}

.site-footer {
  padding-block: 0 2rem;
  color: var(--text-2);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Hairline above the footer content, as wide as the content column */
.site-footer .wrap::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: 1.5rem;
  background: var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer .wrap > p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer .wrap > p:first-child {
  color: var(--text-2);
}

@media (min-width: 60rem) {
  section {
    padding-block: 5rem 4rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .hero {
    min-height: min(56.625rem, 100svh);
    padding-block: clamp(10rem, 28vh, 15.5rem) 3rem;
  }

  .hero-copy .lead {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .hero-grid {
    gap: 3rem;
  }

  .hero .actions {
    margin-top: 2.25rem;
  }

  .site-footer .wrap {
    padding-top: 0;
  }

  .site-footer .wrap::before {
    margin-bottom: 2rem;
  }
}

/* App tiles: only where the side margins have room for them */
@media (min-width: 75rem) {
  .hero-tiles {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .tile {
    position: absolute;
    height: auto;
  }

  .tile-blue {
    top: 294px;
    left: calc(50% - 675px);
    width: 230px;
  }

  .tile-green {
    top: 507px;
    left: calc(50% - 642px);
    width: 210px;
  }

  .tile-white {
    top: 294px;
    right: calc(50% - 668px);
    width: 220px;
  }

  .tile-coral {
    top: 511px;
    right: calc(50% - 665px);
    width: 230px;
  }
}

/* Short landscape screens (phones turned sideways): compact header and hero so the CTAs stay near the fold */
@media (max-height: 30rem) and (orientation: landscape) {
  :root {
    --header-h: 4.25rem;
  }

  .site-header {
    padding-top: 0.5rem;
  }

  .header-inner {
    min-height: 3.5rem;
    padding-block: 0.25rem;
  }

  .hero {
    min-height: 0;
    padding-block: calc(var(--header-h) + 1rem) 1.5rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vh, 2.75rem);
    margin-bottom: 0.75rem;
  }

  .hero-grid {
    gap: 1rem;
  }

  .hero .actions {
    margin-top: 1rem;
  }

  section {
    padding-block: 2.5rem;
  }
}

/* Motion: all of it opt-in, nothing loops, only opacity and transform move.
   Reduced-motion users get the static page; content is never hidden by default. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: heading, lead, CTAs; 70ms steps, ends under 600ms */
  .hero-copy > * {
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    animation: rise 0.4s var(--ease-out) backwards;
  }

  .hero-copy > .lead {
    animation-delay: 70ms;
  }

  .hero-copy > .actions {
    animation-delay: 140ms;
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* Scroll reveal: a short fade and rise as an element enters the viewport.
   Backwards fill only, so hover transforms still work after the reveal. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    section:not(.hero) h2,
    .card,
    .price-row,
    .illustration,
    .compare,
    .steps > *,
    .faq-list,
    .form {
      animation: rise linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
