/* ClinicWise landing page. One stylesheet, no build step.
   A white page divided by space and hairlines. Playfair Display for headlines and big figures,
   Schibsted Grotesk for everything you read. Pink is the only colour, always flat: the 3D ring,
   the soft panels the phones stand on, the price card and the menu. No glows, no glass,
   no border-and-shadow doubles: each surface has either an edge or a shadow. */

/* Fonts ------------------------------------------------------------------ */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  /* optional + preload: the font shows on first paint and text never reflows, so layout shift stays at 0 */
  font-display: optional;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-400-latin.woff2") format("woff2");   /* 400 only, subset to the page's characters */
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

/* Stand ins with each font's measurements, used only if a font misses its load window on a slow line */
@font-face {
  font-family: "Schibsted fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 100%;
  ascent-override: 97.66%;
  descent-override: 25.78%;
  line-gap-override: 0%;
}

/* The looks' own fonts, only for the three look samples far down the page */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-400-sample.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-400-sample.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair fallback";
  src: local("Georgia"), local("Times New Roman"), local("Liberation Serif"), local("DejaVu Serif");
  size-adjust: 97%;
  ascent-override: 108.2%;
  descent-override: 25.1%;
  line-gap-override: 0%;
}

/* Tokens ----------------------------------------------------------------- */

:root {
  --page: #FFFFFF;
  --card: #FFFFFF;
  --ink: #211815;          /* warm near-black: 17:1 on the page */
  --soft: #6B5D57;         /* 6.2:1 on the page */
  --line: #EADCD4;
  --pink: #E3869C;         /* the reference's accent. Never for small text: 2.6:1 */
  --pink-deep: #A3385A;    /* links and numerals: 6.6:1 on the page */
  --blush: #FBEAE8;
  --blush-deep: #F5D3D6;
  --field-edge: #8C7C75;   /* 4:1 on white, so field edges are easy to see */
  --error: #A7281F;
  --error-tint: #FCF1F0;
  --serif: "Playfair Display", "Playfair fallback", Georgia, serif;
  --sans: "Schibsted Grotesk", "Schibsted fallback", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --pad: 20px;
  --section: 88px;
  --header-h: 68px;
  --measure: 36rem;
  --shadow: 0 1px 2px rgb(60 30 30 / 0.08), 0 12px 24px -12px rgb(60 30 30 / 0.28);
  --stage: var(--blush);
  --soft-on-blush: #6B4550;   /* 7:1 on the blush panels, where grey would wash out */
  color-scheme: light;
}

@media (min-width: 37.5em) { :root { --pad: 32px; } }
@media (min-width: 48em) { :root { --section: 120px; } }
@media (min-width: 64em) { :root { --pad: 40px; --section: 152px; --header-h: 80px; } }

/* Base ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
html:has(.menu[open]) { overflow: hidden; }   /* the page stays still under the open menu */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(2.25rem, 1.45rem + 3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, ul, dl, dd, figure { margin: 0; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a {
  color: var(--pink-deep);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-line: underline; }

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

::selection { background: var(--blush-deep); color: var(--ink); }

[hidden] { display: none !important; }

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

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* every section shares one rhythm, so the page reads as one surface */
.section { padding-block: calc(var(--section) / 2); }

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: var(--measure);
}
@media (min-width: 64em) { .lede { font-size: 1.25rem; } }

.ui-name { font-weight: 600; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--page);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #3A2B27; border-color: #3A2B27; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--page); border-color: var(--ink); }

.btn--header {
  min-height: 44px;
  padding: 0 0.95em;
  gap: 7px;
  font-size: clamp(12px, 3.6vw, 15px);   /* wordmark, button and Menu share one line from 320px up */
  white-space: nowrap;
}
.btn--header:hover { transform: none; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
/* the header's paper sits on a pseudo-element, so the full-screen menu is not trapped inside a blurred box */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--page);
}
.site-header:has(.menu[open])::before { background: transparent; }

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 5vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.wordmark:hover { text-decoration: none; }

/* Menu: a native details element, so it opens with or without the script. Full screen and pink, like the reference. */
.menu__toggle { list-style: none; position: relative; z-index: 2; }
/* the wordmark and the button stay on top of the open menu, as on the reference */
.site-header__inner > .wordmark,
.site-header__inner > .btn { position: relative; z-index: 1; }
.menu__toggle::-webkit-details-marker { display: none; }
.menu[open] > .menu__toggle { background: var(--ink); color: var(--page); }

/* two lines that become a cross */
.menu__icon {
  position: relative;
  width: 14px;
  height: 8px;
  margin-right: 2px;
}
.menu__icon::before,
.menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu__icon::before { top: 0; }
.menu__icon::after { top: calc(100% - 1.5px); }
.menu[open] .menu__icon::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu[open] .menu__icon::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

.menu:not([open]) .menu__panel { display: none; }

.menu__panel {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + 24px) var(--pad) 48px;
  background: var(--pink);
  overflow-y: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__panel { animation: portal 0.6s cubic-bezier(0.7, 0, 0.2, 1) both; }
  .menu[open] .menu__list li { animation: settle 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .menu[open] .menu__list li:nth-child(2) { animation-delay: 0.06s; }
  .menu[open] .menu__list li:nth-child(3) { animation-delay: 0.12s; }
  .menu[open] .menu__list li:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes portal {
  from { clip-path: circle(0% at calc(100% - 56px) 34px); }
  to { clip-path: circle(150% at calc(100% - 56px) 34px); }
}

.menu__list {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.menu__list a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding-block: 8px;
  border-bottom: 1px solid rgb(33 24 21 / 0.2);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: transform 0.3s ease;
}
.menu__list a:hover { text-decoration: none; transform: translateX(12px); }
.menu__list li:last-child a { border-bottom: 0; }
.menu__panel :focus-visible { outline-color: var(--ink); }

@media (min-width: 37.5em) {
  .site-header__inner { gap: 10px; }
  .btn--header { padding: 0 20px; }
}

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

.hero {
  position: relative;
  padding-top: clamp(40px, 8vw, 112px);
  padding-bottom: calc(var(--section) / 2);
  overflow-x: clip;   /* the ring may reach past the edge on small screens */
}

.hero__copy {
  display: grid;
  justify-items: start;
}

.hero h1 { max-width: 20em; }

.hero__lede { max-width: 32rem; margin-top: 24px; }

.hero__actions {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 40px;
}
.hero__example { display: contents; }

.hero__note {
  color: var(--soft);
  font-size: 0.875rem;
  line-height: 1.45;
}

.hero__price {
  max-width: var(--measure);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.hero__price strong { color: var(--ink); font-weight: 600; }

@media (min-width: 37.5em) {
  .hero__actions {
    grid-template-columns: auto auto;
    justify-content: start;
    width: auto;
    gap: 14px 12px;
  }
  .hero__note { grid-column: 1 / -1; }
  .hero__price { border-top: 0; padding-top: 0; }
}

/* Screenshot frames -------------------------------------------------------- */

.browser {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.browser__bar {
  position: relative;
  height: 30px;
  background: #FBF6F2;
  border-bottom: 1px solid var(--line);
}
.browser__bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #E8DAD3;
  box-shadow: 15px 0 0 #E8DAD3, 30px 0 0 #E8DAD3;
}
.browser__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  height: 14px;
  margin-top: -7px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  transform: translateX(-50%);
}

.phone { container-type: inline-size; }

.phone__body {
  padding: 3.4cqw;
  border-radius: 15cqw;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.phone__screen {
  overflow: hidden;
  border-radius: 11.6cqw;
  background: var(--card);
}

/* a phone rising out of the bottom edge of a stage */
.phone--peek .phone__body {
  padding-bottom: 0;
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  clip-path: inset(-80px -80px 0 -80px);
}
.phone--peek .phone__screen { border-end-start-radius: 0; border-end-end-radius: 0; }


/* Hero picture: the console at computer size, This week on a phone, and the ring around the phone.
   The ring is two pictures of one render: its back half sits behind the screenshots and its
   front half in front of the phone, so the phone passes through it. */
.hero__visual {
  --p: min(280px, 78cqw);            /* the phone's width */
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* the ring may be wider than the column without widening it */
  margin-top: 64px;
  container-type: inline-size;
}
.hero__visual > * { grid-area: 1 / 1; }


.hero__browser { display: none; }
.hero__phone { justify-self: center; width: var(--p); }

.ring {
  width: calc(var(--p) * 1.4);
  justify-self: center;
  align-self: start;
  margin-top: calc(var(--p) * 1.44);   /* across the foot of the phone, so it rises out of the ring */
  pointer-events: none;
}
.ring img { width: 100%; }

@media (min-width: 37.5em) {
  /* the phone stands in from the edge by half its width, so the whole ring fits around it */
  .hero__visual { --p: 22cqw; margin-top: 88px; }
  .hero__browser { display: block; width: 76cqw; align-self: start; }
  .hero__browser .browser__bar { height: max(22px, 2.8cqw); }
  .hero__phone { justify-self: end; align-self: start; width: var(--p); margin-top: 8cqw; margin-right: calc(var(--p) * 0.5); }
  .ring {
    width: calc(var(--p) * 2);
    justify-self: end;
    margin-top: calc(8cqw + var(--p) * 1.3);
  }
}

/* Motion -------------------------------------------------------------------
   One entrance on load, then the 3D pieces respond to scrolling, as on the reference.
   Only opacity, transform and the individual transform properties move, so nothing shifts in the layout. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy { animation: settle 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__browser, .hero__phone { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .ring { animation: ring-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }

  @supports (animation-timeline: view()) {
    /* the ring turns slowly and the phone rises through it as the picture scrolls by */
    .ring {
      animation: ring-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both, ring-turn linear both;
      animation-timeline: auto, view();
      animation-range: normal, cover 0% cover 100%;
    }
    .hero__phone .phone__body {
      animation: through linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes settle { from { transform: translateY(14px); } }
@keyframes rise { from { transform: translateY(32px); } }
@keyframes ring-in { from { opacity: 0; scale: 0.9; } }
@keyframes ring-turn { from { rotate: -4deg; } to { rotate: 5deg; } }
@keyframes through { from { translate: 0 5%; } to { translate: 0 -7%; } }

/* Section headings ---------------------------------------------------------- */

/* the three things: numbered like the reference's expertise list */
.things h2 { max-width: 12em; }

.things__grid {
  display: grid;
  margin-top: 40px;
}

.fact {
  display: grid;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact h3 { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; letter-spacing: -0.01em; }
.fact p { max-width: var(--measure); }

@media (min-width: 56.25em) {
  .things__grid { margin-top: 56px; }
  .fact { grid-template-columns: minmax(0, 20rem) minmax(0, var(--measure)); justify-content: space-between; gap: 48px; padding-top: 36px; padding-bottom: 36px; }
  .fact h3 { font-size: 1.875rem; }
}

/* Lists and small print ---------------------------------------------------- */

/* rows divided by hairlines, the reference's list style */
.list {
  display: grid;
  max-width: var(--measure);
  margin-top: 32px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.list > li {
  position: relative;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.list--check > li,
.list--cross > li { padding-left: 32px; }
.list--check > li::before,
.list--cross > li::before {
  content: "";
  position: absolute;
  top: calc(14px + 0.22em);
  left: 0;
  width: 18px;
  height: 18px;
  background: no-repeat center / 18px 18px;
}
.list--check > li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.5' fill='none' stroke='%23A3385A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.list--cross > li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 5.5l7 7m0-7l-7 7' fill='none' stroke='%236B5D57' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.small-print {
  max-width: var(--measure);
  margin-top: 24px;
  color: var(--soft);
  font-size: 0.875rem;
  line-height: 1.55;
}
/* Under a picture of the console: its clinic and enquiries are an example's, made up. */
.shots-note { margin-top: 16px; }
.hero .shots-note { margin-inline: auto; text-align: center; }

/* How it works: words beside a phone on its stage ------------------------------ */

.feature__grid { display: grid; gap: 48px; }

.feature__media {
  display: grid;
  justify-items: center;
  align-items: end;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 6vw, 48px) 0;
  border-radius: var(--radius-lg);
  background: var(--stage);
  overflow: hidden;
}
.feature__media .phone { margin-bottom: -18%; }
.feature__phone { width: min(290px, 80vw); }

@media (min-width: 48em) {
  .feature__grid {
    grid-template-columns: minmax(0, var(--measure)) minmax(300px, 440px);
    justify-content: space-between;
    align-items: start;
    gap: 56px;
  }
  .feature--flip .feature__grid { grid-template-columns: minmax(300px, 440px) minmax(0, var(--measure)); }
  .feature--flip .feature__media { order: -1; }
  .feature__phone { width: clamp(240px, 27vw, 300px); }
  .feature__text { padding-top: 8px; }
}
@media (min-width: 64em) {
  .feature__grid { gap: 80px; }
  .feature--flip .feature__grid { justify-content: start; gap: 104px; }
}

/* Your week: the console's numbers, set in the display face ------------------- */

.monday__intro { margin-top: 20px; }

@media (min-width: 56.25em) {
  .list--split {
    display: block;
    max-width: none;
    columns: 2;
    column-gap: 56px;
    border-bottom: 0;
  }
  .list--split > li { break-inside: avoid; border-bottom: 1px solid var(--line); border-top: 0; }
}

.week {
  margin-top: 56px;
  padding: 4px 24px 8px;
  border-radius: var(--radius-lg);
  background: var(--blush);
}

.week__caption {
  padding: 20px 0 16px;
  color: var(--soft-on-blush);
  font-size: 0.9375rem;
}

.week__grid { display: grid; margin: 0; }

.stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label num" "note num";
  column-gap: 24px;
  align-items: center;
  padding-block: 20px;
  border-top: 1px solid rgb(107 69 80 / 0.18);
}

.stat dt { grid-area: label; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }

.stat__num {
  grid-area: num;
  justify-self: end;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.7rem + 2vw, 3.25rem);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.stat__unit { font-family: var(--sans); font-size: max(13px, 0.36em); font-weight: 500; }

.stat__note {
  grid-area: note;
  max-width: 34rem;
  margin-top: 4px;
  color: var(--soft-on-blush);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (min-width: 48em) {
  .week { margin-top: 64px; padding: 8px 48px 16px; }
  .stat { padding-block: 24px; column-gap: 48px; }
}

/* Make it yours ------------------------------------------------------------- */

.yours__grid { display: grid; gap: 32px; }
.yours__intro { margin-top: 20px; }

.keep {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--blush);
}
.keep h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 1.625rem; font-weight: 400; letter-spacing: -0.015em; }

.yours__shot { margin-top: 48px; }
.yours__shot--wide { display: none; }
.yours__shot--phone { display: grid; justify-items: center; }

@media (min-width: 48em) {
  .yours__shot--wide { display: block; }
  .yours__shot--phone { display: none; }
}
@media (min-width: 56.25em) {
  .yours__grid {
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 22rem);
    justify-content: space-between;
    align-items: start;
    gap: 64px;
  }
  .keep { margin-top: 24px; padding: 36px; }
  .yours__shot { margin-top: 80px; }
}

/* Prescription medicines: a stage the phone rises out of -------------------------- */

.medicines__grid {
  display: grid;
  gap: 40px;
  padding: 40px 24px 0;
  border-radius: var(--radius-lg);
  background: var(--stage);
  overflow: hidden;
}
.medicines__text { max-width: var(--measure); }
.medicines__text .lede { margin-top: 20px; }
.medicines__media { display: grid; justify-items: center; }

@media (min-width: 48em) {
  .medicines__grid {
    grid-template-columns: minmax(0, var(--measure)) auto;
    justify-content: space-between;
    gap: 56px;
    padding: 64px 56px 0;
  }
  .medicines__text { padding-bottom: 64px; align-self: center; }
  .medicines__media { align-self: end; }
}
@media (min-width: 64em) { .medicines__grid { padding: 80px 88px 0; } }

/* Three looks ---------------------------------------------------------------- */

.looks__grid {
  display: grid;
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.look {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.look__shot {
  overflow: hidden;
  aspect-ratio: 390 / 844;
  padding: 8px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
  container-type: inline-size;
}

/* on the smallest phones the sample sits above its words, so its buttons have room */
@media (max-width: 22.49em) {
  .look { grid-template-columns: minmax(0, 1fr); }
  .look__shot { width: 66%; }
}

.look__text h3 { margin-bottom: 6px; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: -0.015em; }

/* the real look pictures, when they replace the placeholders */
.look__img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 28px; }

.looks__note { margin-top: 40px; max-width: var(--measure); color: var(--soft); }

@media (min-width: 48em) {
  .looks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
  .look { grid-template-columns: none; align-items: start; }
  .look__shot, .look__img { width: min(100%, 260px); }
  .look__text { padding-top: 8px; }
}

/* A sample of each look, set in its own fonts, colours and corners, from reference/looks.css.
   Sizes are in cqw so the sample fits any width of card; small text never drops below 11px. */
.look__sample {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 7cqw 7cqw 0;
  border-radius: 20px;
  background: var(--l-page);
  color: var(--l-ink);
  font-family: var(--l-text);
}
.sample__brand {
  padding-bottom: 5cqw;
  border-bottom: 1px solid var(--l-line);
  font-family: var(--l-display);
  font-size: max(12px, 5.4cqw);
  font-weight: var(--l-title-weight);
}
.sample__title {
  margin-top: 10cqw;
  font-family: var(--l-display);
  font-size: 10.5cqw;
  font-weight: var(--l-title-weight);
  line-height: 1.1;
  text-wrap: balance;
}
.sample__text { margin-top: 5cqw; color: var(--l-soft); font-size: max(12px, 4.6cqw); line-height: 1.5; }
.sample__button {
  align-self: start;
  margin-top: 8cqw;
  padding: 3.6cqw 6cqw;
  border-radius: var(--l-radius);
  background: var(--l-accent);
  color: var(--l-on-accent);
  font-size: max(12px, 4.2cqw);
  font-weight: 600;
}
.sample__bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2cqw;
  margin: auto -7cqw 0;
  padding: 3.5cqw 3.5cqw 5cqw;
  border-top: 1px solid var(--l-line);
}
.sample__bar > span {
  display: grid;
  place-items: center;
  min-height: max(28px, 11cqw);
  border: 1px solid var(--l-ink);
  border-radius: var(--l-radius);
  font-size: max(11px, 3.8cqw);
  font-weight: 600;
}
.sample__bar > span:last-child { background: var(--l-ink); color: var(--l-page); }

[data-look="editorial"] {
  --l-page: #F8F6F0; --l-ink: #16150F; --l-soft: #5A564A; --l-line: #E4DCC9;
  --l-accent: #C2A15F; --l-on-accent: #16150F; --l-radius: 2px; --l-title-weight: 400;
  --l-display: "Newsreader", Georgia, serif; --l-text: "Public Sans", Arial, sans-serif;
}
[data-look="clinical"] {
  --l-page: #FFFFFF; --l-ink: #0E2A3F; --l-soft: #3D4F5E; --l-line: #D9E1E4;
  --l-accent: #3FA08A; --l-on-accent: #0E2A3F; --l-radius: 1px; --l-title-weight: 600;
  --l-display: "Public Sans", Arial, sans-serif; --l-text: "Public Sans", Arial, sans-serif;
}
[data-look="boutique"] {
  --l-page: #FDF8F4; --l-ink: #3A2E2A; --l-soft: #65524A; --l-line: #EADBD1;
  --l-accent: #D9A08F; --l-on-accent: #3A2E2A; --l-radius: 14px; --l-title-weight: 400;
  --l-display: "Newsreader", Georgia, serif; --l-text: "Public Sans", Arial, sans-serif;
}

/* Price: the pink moment ------------------------------------------------------ */

.price__card {
  position: relative;
  padding: 44px 24px 44px;
  border-radius: var(--radius-lg);
  background: var(--pink);
  color: var(--ink);
  text-align: center;
}

.price__card h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }

.price__body { display: grid; gap: 28px; justify-items: center; margin-top: 16px; }

.price__line { display: grid; justify-items: center; gap: 8px; }

.price__amount {
  font-family: var(--serif);
  font-size: clamp(6rem, 3rem + 14vw, 13rem);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.price__terms { font-size: 1.125rem; font-weight: 500; line-height: 1.4; }

.price__details { display: grid; gap: 4px; justify-items: center; }
.price__details .btn { margin-top: 20px; }
.price__details .btn:hover { background: var(--page); color: var(--ink); border-color: var(--page); }


@media (min-width: 48em) {
  .price__card { padding: 72px 48px 72px; }
  .price__terms { font-size: 1.25rem; }
}
@media (min-width: 64em) { .price__card { padding: 88px 72px 96px; } }

.scope { display: grid; gap: 48px; margin-top: 80px; }
.scope__col { padding-top: 20px; border-top: 1px solid var(--ink); }
.scope__col h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.015em; }
.scope__col .list { margin-top: 20px; }

@media (min-width: 48em) {
  .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 104px; }
}

/* Questions -------------------------------------------------------------- */

.questions__grid { display: grid; gap: 28px; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq__item > summary::-webkit-details-marker { display: none; }

/* a plus in a ring that turns into a cross when the answer opens */
.faq__item > summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.faq__item[open] > summary::after { transform: rotate(45deg); background-color: var(--blush); border-color: var(--blush-deep); }
.faq__item > summary:hover::after { background-color: var(--blush); }

.faq__body { max-width: 38rem; padding: 0 40px 28px 0; color: var(--soft); }

@media (min-width: 56.25em) {
  .questions__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 42rem); gap: 64px; }
  .questions__grid h2 { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}


/* Request a preview -------------------------------------------------------- */

.preview { overflow-x: clip; }
.preview__grid { position: relative; display: grid; gap: 40px; }
.preview__intro .lede { margin-top: 20px; }


.preview__card {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

@media (min-width: 37.5em) { .preview__card { padding: 40px; } }
@media (min-width: 56.25em) {
  .preview__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 33rem);
    align-items: start;
    gap: 64px;
  }
  .preview__card { padding: 48px; }
}

.demo-note {
  justify-self: start;
  align-self: start;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--blush);
  color: var(--soft-on-blush);
  font-size: 0.875rem;
  font-weight: 500;
}

.form { display: flex; flex-direction: column; }
.form > * + * { margin-top: 24px; }
.form > .form__alert:empty,
.form > .form__status:empty { margin-top: 0; }
.form > .form__links { margin-top: 12px; }
.form--step { justify-content: center; }
.form--step h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.015em; }
.form--step h3:focus { outline: none; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }

.field__hint { color: var(--soft); font-size: 0.875rem; line-height: 1.5; }

.field__error { color: var(--error); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }

.field input {
  width: 100%;
  min-height: 54px;
  margin: 2px 0 0;
  padding: 12px 18px;
  border: 1px solid var(--field-edge);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}
.field input:hover { border-color: var(--ink); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

.field .field__code {
  max-width: 12rem;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.form__alert:not(:empty) {
  padding: 14px 16px;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  background: var(--error-tint);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form__submit { display: grid; gap: 14px; }
.form__button { width: 100%; }

.form__note { color: var(--soft); font-size: 0.875rem; line-height: 1.5; }

.form__nojs { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

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

.link-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink-deep);
  font: inherit;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.form__status:not(:empty) { color: var(--pink-deep); font-weight: 600; }

.slot { font-weight: 600; overflow-wrap: anywhere; }

.btn.is-busy { cursor: progress; }
.btn.is-busy::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 250 245 / 0.35);
  border-top-color: var(--page);
  border-radius: 50%;
  animation: turn 0.8s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

@media (min-width: 37.5em) {
  .form__submit { justify-items: start; }
  .form__button { width: auto; min-width: 14rem; }
}

/* The privacy notice and the cookies page: the same type, set for reading --- */

.legal h1 { max-width: 20ch; }
.legal .lede { margin-top: 24px; }
.legal__date { color: var(--soft); font-size: 0.9375rem; }
.legal h2 {
  max-width: var(--measure);
  margin-top: 56px;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}
.legal h2 + * { margin-top: 20px; }
.legal p:not(.lede) { max-width: var(--measure); }
.legal p + p, .legal .list + p, .legal p + .list { margin-top: 16px; }
.legal p a, .legal li a { text-decoration-line: underline; }   /* links in running text are underlined, not told apart by colour alone */

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding-block: 56px 72px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.9375rem;
}

.wordmark--small {
  display: inline;
  min-height: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  margin-inline: -6px;
  color: var(--ink);
  font-weight: 500;
}

/* Review aid: add ?drafts=1 to the address to outline every DRAFT line and placeholder */
.show-drafts [data-draft],
.show-drafts [data-placeholder] {
  outline: 2px dashed var(--pink-deep);
  outline-offset: 6px;
}
.show-drafts [data-draft]::after,
.show-drafts .site-footer__company::after {
  content: attr(data-draft) attr(data-placeholder);
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--blush);
  color: var(--pink-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}
.show-drafts .site-footer__company { min-height: 24px; margin-top: 16px; }

/* Motion off ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Review aid: ?drafts=1 also outlines every line that is not true of the
   product as built yet, with the reason, so each can be cut or kept in one pass */
.show-drafts [data-untrue] { outline: 2px dashed #B42318; outline-offset: 6px; }
.show-drafts [data-untrue]::after {
  content: "Not true yet: " attr(data-untrue);
  display: block;
  width: fit-content;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 100px;
  background: #FEE4E2;
  color: #912018;
  font-size: 0.75rem;
  font-weight: 600;
}
