/* ==========================================================================
   Nail Picker — nailpicker.com
   One stylesheet, no dependencies, no external requests at runtime.
   Built to the supplied design (Nail Picker Site.dc.html).
   ========================================================================== */

/* Self-hosted so the site makes ZERO external requests. Both families are
   SIL Open Font License 1.1 — see fonts/OFL.txt. Latin subset only. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
}

:root {
  /* --- palette: taken from the design ----------------------------------
     Contrast measured against --cream (#F5EFE6). Three values were darkened
     from the mockup because they failed WCAG AA at the size they are used:
       step numbers  #7E9B6A  2.71  ->  #5A7150  4.70
       small caption  ink .45  2.82  ->  ink .64  4.98
       copyright      ink .50  3.25  ->  ink .64  4.98
       captions       ink .55  3.77  ->  ink .64  4.98
     Everything else is the mockup's own value.                          */
  --cream: #f5efe6;
  --ink: #1c1915;
  --rust: #9e4526;          /* 5.51:1 — links, eyebrows */
  --rust-hover: #7e3418;
  --sage: #5a7150;          /* 4.70:1 — step numerals */

  /* translucent ink, used exactly as the design does */
  --ink-64: rgba(28, 25, 21, 0.64);   /* 4.98:1 — small captions */
  --ink-66: rgba(28, 25, 21, 0.66);   /* 5.32:1 — step body */
  --ink-70: rgba(28, 25, 21, 0.70);   /* 6.06:1 — lede */
  --ink-78: rgba(28, 25, 21, 0.78);   /* 7.94:1 — prose */
  --ink-80: rgba(28, 25, 21, 0.80);   /* 8.49:1 — callout body */

  --rule: rgba(28, 25, 21, 0.10);
  --rule-soft: rgba(28, 25, 21, 0.07);

  --card: #e7dcc8;
  --shot-a: #eae0ce;   /* tile colour behind a screenshot while it loads */
  --callout: #f0d5c9;       /* ink on this = 12.56:1 */
  --surface: rgba(255, 253, 248, 0.72);   /* card behind FAQ / processor blocks */

  --serif: 'Instrument Serif', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --wrap: 1080px;
  --wrap-prose: 760px;
  --gutter: 32px;
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--rust-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible + label,
[tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --- skip link ------------------------------------------------------------ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 20;
  text-decoration: none;
}

.skip:focus { left: 0; }

/* --- layout --------------------------------------------------------------- */

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

.wrap--prose { max-width: var(--wrap-prose); }

/* --- masthead ------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.masthead__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
}

.wordmark__mark { width: 24px; height: 24px; flex: none; display: block; }

.masthead nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}

.masthead nav a {
  font-size: 14px;
  color: var(--ink-70);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current='page'] { color: var(--ink); }

/* --- type ----------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.5px;
  text-wrap: pretty;
}

.prose h1 { font-size: clamp(2.4rem, 7vw, 64px); line-height: 1.05; }

h2 { font-size: clamp(1.9rem, 5vw, 46px); line-height: 1.1; }

h3 { font-size: clamp(1.5rem, 4vw, 32px); line-height: 1.15; }

p { margin: 0; }

.lede {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 26em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
}

.note {
  font-size: 14px;
  color: var(--ink-64);
}

/* A visibly unfinished value: must not ship unnoticed. */
.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed rgba(158, 69, 38, 0.5);
  border-radius: 5px;
  color: var(--rust);
  font-size: 0.86em;
}

/* --- sections ------------------------------------------------------------- */

.section { padding-top: 104px; }
.section--tight { padding-top: 76px; }
.section--wide { padding-top: 132px; }

/* --- hero ----------------------------------------------------------------- */

.hero {
  padding-top: 72px;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 17px 30px;
  border-radius: 100px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #f6f0e6;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: #33291f; border-color: #33291f; color: #f6f0e6; }


/* --- shade switcher (CSS only — works with JS disabled) -------------------- */

.shades { display: flex; flex-direction: column; gap: 18px; align-items: center; }

.shades input { position: absolute; opacity: 0; pointer-events: none; }

.shades__stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(90, 70, 45, 0.16);
}

.shades__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.shades__img img { width: 100%; height: 100%; object-fit: cover; }

#shade-terracotta:checked ~ .shades__stage .shades__img--terracotta,
#shade-red:checked        ~ .shades__stage .shades__img--red,
#shade-black:checked      ~ .shades__stage .shades__img--black,
#shade-pink:checked       ~ .shades__stage .shades__img--pink { opacity: 1; }

.shades__dots { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: block;
  box-shadow: 0 0 0 1px rgba(28, 25, 21, 0.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Each swatch is a crop of the real lacquer, taken off the index-finger nail
   in that very photograph — not a flat hex guessed to match. A flat circle
   cannot show that the pink is a glitter, and on a nail app that is the one
   thing a swatch has to say. The colour underneath is the average of the same
   crop, so a dot still reads correctly if the image does not arrive. */
.dot--terracotta { background-color: #ca8f7e; background-image: url('/assets/swatches/terracotta.webp'); }
.dot--red        { background-color: #cd484e; background-image: url('/assets/swatches/red.webp'); }
.dot--black      { background-color: #28252a; background-image: url('/assets/swatches/black.webp'); }
.dot--pink       { background-color: #be5767; background-image: url('/assets/swatches/pink.webp'); }

#shade-terracotta:checked ~ .shades__dots .dot--terracotta,
#shade-red:checked        ~ .shades__dots .dot--red,
#shade-black:checked      ~ .shades__dots .dot--black,
#shade-pink:checked       ~ .shades__dots .dot--pink {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink);
}

.shades__note { font-size: 12.5px; color: var(--ink-64); margin-left: 6px; }

/* --- steps ---------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 40px;
}

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

/* the frame is pushed to the bottom of the cell so that, whatever the length of
   the three descriptions, the three screenshots line up on one baseline */
.step .shot__frame { margin-top: auto; }

.step__num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sage);
}

.step h2 { font-size: 33px; line-height: 1.1; }

.step p { font-size: 16px; line-height: 1.6; color: var(--ink-66); }

/* --- app screenshots ------------------------------------------------------
   Real 1179x2556 iPhone captures, served at 720w as webp with a jpeg
   fallback. Each one lives inside its own step rather than in a separate
   gallery: the step already names and describes it, so a second caption would
   just repeat the heading directly above it.
   -------------------------------------------------------------------------- */

.shot__frame {
  aspect-ratio: 1179 / 2556;
  border-radius: 26px;
  overflow: hidden;
  background: var(--shot-a);
}

.shot__frame picture,
.shot__frame img { display: block; width: 100%; height: 100%; }

.shot__frame img { object-fit: cover; }

/* --- callout -------------------------------------------------------------- */

.callout {
  max-width: 700px;
  border-radius: 26px;
  background: var(--callout);
  padding: 40px 44px;
}

.callout p { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--ink-80); }
.callout p + p { margin-top: 20px; }

/* --- prose (privacy / support) -------------------------------------------- */

.prose { padding-top: 96px; }

.prose > p { font-size: 17px; line-height: 1.65; margin-top: 16px; }

.prose .lede { font-size: 18px; line-height: 1.6; color: var(--ink-70); max-width: none; }

.prose h2 {
  font-size: clamp(1.7rem, 4.4vw, 36px);
  line-height: 1.15;
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--rule);
}

.prose h3 { font-size: clamp(1.3rem, 3.2vw, 25px); line-height: 1.25; margin-top: 34px; }

.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.65; }
.prose li { margin-bottom: 9px; }

/* model identifiers read as names, not prose */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.updated { font-size: 15px; color: var(--ink-64); margin-top: 18px; }

.facts { margin: 18px 0 0; }
.facts dt { font-weight: 600; margin-top: 18px; }
.facts dd { margin: 4px 0 0; color: var(--ink-78); }

.callout .facts dt { margin-top: 16px; }
.callout .facts dt:first-child { margin-top: 0; }

/* --- cards: FAQ entries, processor entries -------------------------------- */

.cards {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.cards > li {
  border-radius: 24px;
  background: var(--surface);
  padding: 32px 34px;
}

.prose .cards h3 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3.4vw, 27px);
  line-height: 1.2;
}

.prose .cards p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: var(--ink-78); }

/* Definition rows, each on its own card. The <div> wrappers inside <dl> are
   valid HTML5 and are what let a term and its description share one card. */
.facts { margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }

.facts > div {
  border-radius: 20px;
  background: var(--surface);
  padding: 22px 26px;
}

.facts dt { font-weight: 600; font-size: 16px; margin: 0; }
.facts dd { margin: 8px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-78); }

/* the sub-processor list is a two-up grid of smaller cards */
.facts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.facts--grid > div { padding: 20px 24px; }
.facts--grid dt { font-size: 15.5px; }
.facts--grid dd { font-size: 15.5px; line-height: 1.55; }

/* --- dot bullets ---------------------------------------------------------- */

.prose ul.bullets {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* The marker is absolutely positioned rather than a flex sibling: as a flex
   item a leading <b> would become its own column, breaking "More light." away
   from the sentence it introduces. */
.prose ul.bullets > li {
  position: relative;
  padding-left: 20px;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-80);
}

.prose ul.bullets > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}

/* the privacy summary uses sage dots to read as a softer list */
.prose ul.bullets--sage > li { font-size: 17px; line-height: 1.6; }
.prose ul.bullets--sage > li::before { background: var(--sage); }

.prose ul.bullets b { font-weight: 600; }

/* --- footer --------------------------------------------------------------- */

footer {
  margin-top: 120px;
  border-top: 1px solid var(--rule);
  padding: 34px 0 76px;
}

footer .wrap { display: flex; flex-direction: column; gap: 12px; }

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  font-size: 14px;
  flex-wrap: wrap;
}

footer p { font-size: 14px; color: var(--ink-64); }

/* --- responsive ----------------------------------------------------------- */

@media (min-width: 900px) {
  .hero {
    padding-top: 104px;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 899px) {
  :root { --gutter: 24px; }
  .section { padding-top: 72px; }
  .section--wide { padding-top: 88px; }
  .prose { padding-top: 64px; }
  .callout { padding: 30px 26px; }
  .cards > li { padding: 26px 24px; }
  .facts--grid { grid-template-columns: 1fr; }

  /* One step per swipe. Stacked vertically these are three screenfuls of
     phone screenshot, which buried the rest of the page; as a rail each step
     travels with the screen it describes. Scroll-snap only — no JavaScript,
     and it degrades to an ordinary horizontal scroll where snap is missing. */
  .steps {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* bleed to the screen edges so a card can sit centred */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }

  .steps::-webkit-scrollbar { display: none; }

  .step {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .step h2 { font-size: 28px; }
}

/* --- motion --------------------------------------------------------------- */

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

/* --- print ---------------------------------------------------------------- */

@media print {
  .skip, .masthead nav, .shades__dots { display: none; }
  .masthead { position: static; }
  body { background: #fff; color: #000; }
}
