/* Torsk one-page site.
   Colours, type sizes, spacing and radii come from the Torsk Design System.
   Spacing steps: 4 8 12 16 24 32 48 64. Radii: 4 8 12. No gradients, no shadows. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --aqua: #02BBBB;
  --teal: #006666;
  --deep-teal: #012929;
  --navy: #20414D;
  --ink: #212121;
  --fog: #D6D8D8;
  --paper: #F4F4F4;
  --white: #FFFFFF;
  --slate: #566060;
}

/* Base */

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

html {
  /* Deep teal behind the page, so there is no white flash before it paints. */
  background: var(--deep-teal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--deep-teal);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 700;
}

h1 span {
  display: block;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--deep-teal);
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--deep-teal);
}

/* Shared pieces */

.skip {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--deep-teal);
  font-weight: 700;
}

.skip:focus {
  left: 16px;
}

.skip:focus-visible {
  outline-color: var(--aqua);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.band {
  padding: 48px 24px;
}

.band--white {
  background: var(--white);
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
}

/* No fog line where a white band meets a deep teal one. */
.band--white:has(+ .on-dark) {
  border-bottom: 0;
}

.on-dark {
  background: var(--deep-teal);
  color: var(--white);
}

.on-dark h2 {
  color: var(--white);
}

.on-dark a {
  color: var(--white);
}

.on-dark a:hover {
  color: var(--aqua);
}

.on-dark a:focus-visible {
  outline-color: var(--aqua);
}

.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.on-dark .eyebrow {
  color: var(--aqua);
}

.measure {
  max-width: 680px;
}

.prose {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-head {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.split__main {
  flex: 999 1 480px;
  min-width: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split__side {
  flex: 1 1 320px;
  min-width: 0;
}

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--aqua);
  color: var(--deep-teal);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

/* On light grounds the button darkens to teal. On deep teal it turns white. */
.btn:hover {
  background: var(--teal);
  color: var(--white);
}

.on-dark .btn {
  color: var(--deep-teal);
}

.on-dark .btn:hover {
  background: var(--white);
  color: var(--deep-teal);
}

.on-dark .btn:focus-visible {
  outline-color: var(--white);
}

/* Header */

.site-header__inner {
  max-width: 1148px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

/* On a phone the nav keeps only "What you pay" and "Contact". */
.nav-opt {
  display: none;
}

/* Hero */

.hero__inner {
  max-width: 1148px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.hero__col {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--aqua);
}

.lead {
  font-size: 18px;
}

.hero__who {
  font-weight: 600;
}

.cta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

/* Who it's for */

.checklist h3 {
  margin-bottom: 16px;
}

.checklist li {
  padding: 12px 0;
  border-top: 1px solid var(--fog);
}

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

/* What you get */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.cards .card {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* What you pay */

.pay {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pay h3 {
  font-size: 22px;
}

/* Tighter on a phone so the button's label stays on one line. */
.pay .btn {
  padding-left: 16px;
  padding-right: 16px;
}

.pay__row {
  padding: 12px 0;
  border-top: 1px solid var(--fog);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.pay__row:last-child {
  border-bottom: 1px solid var(--fog);
}

.pay dt {
  flex: 0 1 220px;
  font-weight: 600;
  color: var(--deep-teal);
}

.pay dd {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 680px;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 24px;
}

.steps li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: var(--deep-teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

/* Client story. Not on the page yet: see drafts/client-story.html. */

.story {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}

.story h2 {
  font-size: 22px;
  line-height: 1.3;
}

.story blockquote {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story__quote {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.story__by {
  font-size: 13px;
  line-height: 1.4;
  color: var(--fog);
}

.story__figures {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.story__figure {
  padding: 16px 0;
  border-top: 1px solid var(--teal);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story__figure:last-child {
  padding-bottom: 0;
}

.story__number {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.story__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--fog);
}

/* Contact */

.contact__cta {
  margin-top: 16px;
}

.contact__list {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact__row {
  padding: 12px 0;
  border-top: 1px solid var(--teal);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__row:last-child {
  padding-bottom: 0;
}

.contact__row dt {
  font-size: 13px;
  line-height: 1.4;
  color: var(--fog);
}

.contact__row dd {
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 32px 24px 48px;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.site-footer__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--slate);
}

/* Not-found page */

.notfound {
  min-height: 50vh;
}

/* Wider screens */

@media (min-width: 600px) {
  .band {
    padding: 64px 24px;
  }

  .hero__inner {
    padding: 64px 24px;
  }

  .story {
    padding: 32px;
  }

  .pay {
    padding: 24px;
  }

  .pay .btn {
    padding-left: 24px;
    padding-right: 24px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 721px) {
  .nav-opt {
    display: inline-flex;
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .navlink {
    transition: none;
  }
}
