/* instasite.app: the landing page. Same colours and type as the app (cp.instasite.app). */
:root {
  --ink: #16262e;
  --muted: #4a5c63;
  --paper: #edf1ef;
  --card: #fbfcfb;
  --line: #cbd8d3;
  --teal: #0b7a68;
  --teal-dark: #075e50;
  --green: #1f9d55;
  --orange: #e8a33d;
  --red: #d4534b;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0ec;
    --muted: #9fb0a8;
    --paper: #0f1a17;
    --card: #12211c;
    --line: #26362f;
    --teal: #2fae96;
    --teal-dark: #22917c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; line-height: 1; }
.top nav { display: flex; align-items: center; gap: 1rem; font-size: .9rem; font-weight: 500; }
.quiet { color: var(--muted); text-decoration: none; }
.quiet:hover { color: var(--ink); }

.button { display: inline-block; border: 0; border-radius: .5rem; padding: .55rem .95rem; font: 600 .9rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.button.dark { background: var(--ink); color: var(--paper); }
.button.teal { background: var(--teal); color: #fff; }
.button.teal:hover { background: var(--teal-dark); }
.button.light { background: var(--paper); color: var(--ink); padding: .8rem 1.25rem; font-size: 1rem; }
.button:disabled { opacity: .5; cursor: default; }
.button:not(:disabled):hover { opacity: .92; }

/* Hero */
.window { margin-top: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
@media (min-width: 640px) { .window { margin-top: 2rem; } }
.bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.address { display: flex; flex: 1; min-width: 0; align-items: center; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); font: 400 .875rem var(--mono); }
.address:focus-within { border-color: var(--teal); }
.scheme { color: var(--muted); user-select: none; }
.address input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.address input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.hero { padding: 3rem 1.25rem 3.5rem; }
@media (min-width: 640px) { .hero { padding: 5rem 2.5rem 6rem; } }
h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
}
/* The typed domain: its own line, shrunk by script.js to fit. */
.domain {
  display: block;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: .07em;
  text-underline-offset: .12em;
}
.lead { max-width: 36rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }

/* Sections */
.block { margin-top: 6rem; }
@media (min-width: 640px) { .block { margin-top: 8rem; } }
h2 { max-width: 42rem; margin: 0; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }

/* The five steps, joined by a line (down on phones, across on wide screens). */
.track { display: grid; gap: 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.track li { position: relative; padding-left: 3.5rem; }
.track li:not(:last-child)::before { content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: -2rem; width: 2px; background: var(--line); }
.stop { position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--teal); border-radius: 50%; background: var(--paper); color: var(--teal); }
.track h3 { margin: 0; padding-top: .45rem; font-size: 1.125rem; font-weight: 700; }
.track p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
@media (min-width: 768px) {
  .track { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .track li { padding-left: 0; }
  .track li:not(:last-child)::before { left: 2.5rem; right: -1.5rem; top: 1.25rem; bottom: auto; width: auto; height: 2px; }
  .stop { position: relative; }
  .track h3 { margin-top: 1rem; padding-top: 0; }
}

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.textlink { display: inline-block; margin-top: 1.5rem; color: var(--teal); font-weight: 600; text-underline-offset: 4px; }
.textlink:hover { color: var(--teal-dark); }

.checks { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); }
.checks li { display: flex; gap: 1rem; padding: 1rem 1.25rem; }
.checks li + li { border-top: 1px solid var(--line); }
.checks strong { font-weight: 600; }
.detail { display: block; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.lights { display: flex; flex-shrink: 0; align-items: center; gap: .375rem; margin-top: .45rem; height: .625rem; }
.dot { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.orange { background: var(--orange); }
.dot.green { background: var(--green); }
.dash { display: inline-block; width: .75rem; height: 1px; background: var(--line); }

.three { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 640px) { .three { grid-template-columns: repeat(3, 1fr); } }
.three p { margin: 0; color: var(--muted); line-height: 1.65; }
.three strong { display: block; color: var(--ink); }

.price { padding-top: 3.5rem; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .price { grid-template-columns: 1fr 1fr; } }
table { width: 100%; align-self: end; border-collapse: collapse; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
th { padding-bottom: .5rem; color: var(--muted); font-size: .875rem; font-weight: 400; text-align: left; }
td { padding: .75rem 0; border-top: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.right { text-align: right; }
.muted { color: var(--muted); }

.closing { margin: 6rem 0 5rem; padding: 3rem 1.5rem; border-radius: 1rem; background: var(--ink); color: var(--paper); }
@media (min-width: 640px) { .closing { margin-top: 8rem; padding: 4rem 3rem; } }
.closing h2 { max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; }
.netcetera { font-size: .875rem; opacity: .8; text-underline-offset: 4px; }
.netcetera:hover { opacity: 1; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.foot .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Inner pages: features, pricing, free checks. */
.intro { padding: 3rem 0 0; }
@media (min-width: 640px) { .intro { padding-top: 5rem; } }
.intro h1 { max-width: 44rem; }
.kicker { margin: 0 0 .75rem; color: var(--teal); font-family: "IBM Plex Mono", monospace; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.three a { color: inherit; text-underline-offset: 4px; }
.faq { max-width: 42rem; margin: 2rem 0 0; }
.faq dt { margin-top: 1.5rem; font-weight: 700; }
.faq dd { margin: .35rem 0 0; color: var(--muted); line-height: 1.65; }
.top nav .wide { display: none; }
@media (min-width: 760px) { .top nav .wide { display: inline; } }
.textlink + .textlink { margin-left: 1.5rem; }
.top nav a { white-space: nowrap; }
.top { gap: .75rem; }
@media (max-width: 400px) { .top nav { gap: .75rem; } .top nav .button { padding-left: .85rem; padding-right: .85rem; } }

/* The hero's form, under the intro: one big field and the button. */
.cta { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 40rem; margin-top: 2rem; }
.cta-field { flex: 1 1 16rem; min-width: 0; }
.cta-field input { width: 100%; box-sizing: border-box; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: .6rem; background: var(--card); color: inherit; font: 500 1.125rem var(--mono); outline: none; }
.cta-field input:focus { border-color: var(--teal); }
.cta-field input[aria-invalid="true"] { border-color: #e02424; }
.cta .button { padding: .9rem 1.4rem; font-size: 1.05rem; }
.cta-note { margin: .9rem 0 0; color: var(--muted); font-size: .95rem; }
.cta-note a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
