/* Skin Habits home page: the first screen is the copy on a warm dark
   ground over three portraits fading up into it; below it, the product
   sections (what it does, how it works, your data, about us). */

:root {
  --ground:   #1E1A17;
  --on-ground:#F6F0E8;
  --muted:    rgb(246 240 232 / .74);
  --rule:     rgb(246 240 232 / .4);
  --accent:   #C9876B;
  --sage:     #9DB08F;
  --sand:     #D8B48A;

  --font-ui:      "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 400 16px/1.6 var(--font-ui);
}

.page {
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr);
}

/* the copy */
.brand {
  padding: 32px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 9vh, 96px) var(--gutter) clamp(28px, 5vh, 56px);
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "SOFT" 60;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.lede {
  margin: 0 0 30px;
  max-width: 30em;
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--muted);
}
.contact {
  color: var(--on-ground);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.contact:hover { background: var(--on-ground); color: var(--ground); }
.contact.primary { background: var(--on-ground); color: var(--ground); border-color: var(--on-ground); }
.contact.primary:hover { background: transparent; color: var(--on-ground); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* the product sections below the first screen */
.band {
  padding: clamp(64px, 11vh, 120px) max(var(--gutter), calc((100% - 72rem) / 2));
}
.band.alt { background: rgb(246 240 232 / .04); border-block: 1px solid rgb(246 240 232 / .1); }
.band .eyebrow { margin-bottom: 14px; }
.band h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "SOFT" 60;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  max-width: 18em;
}
.band .intro { margin: 0 0 40px; max-width: 38em; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.band h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.25; }
.band li p { margin: 0; color: var(--muted); }

.features, .steps, .ticks { list-style: none; margin: 0; padding: 0; }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 16px;
}
.features > li {
  padding: 0 0 26px;
  border: 1px solid rgb(246 240 232 / .16);
  border-radius: 18px;
  overflow: hidden;
}
.features > li > h3, .features > li > p { padding: 0 24px; }

/* the feature mockups: abstract pictures of each feature, not app screens */
.mock {
  position: relative;
  height: 196px;
  margin: 0 0 22px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, rgb(246 240 232 / .08), rgb(246 240 232 / .02));
  border-bottom: 1px solid rgb(246 240 232 / .1);
  font-size: 12.5px;
  line-height: 1.4;
}
.mock .bubble {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 16px;
  background: rgb(246 240 232 / .1);
  color: var(--on-ground);
}
.mock .bubble.you { align-self: flex-end; background: var(--on-ground); color: var(--ground); border-bottom-right-radius: 4px; }
.mock .bubble.app { align-self: flex-start; border-bottom-left-radius: 4px; }
.mock .tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mock .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock .chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgb(246 240 232 / .22);
  border-radius: 999px;
  color: rgb(246 240 232 / .88);
  font-size: 11.5px;
  white-space: nowrap;
}
.mock .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mock .chip i.sage { background: var(--sage); }
.mock .chip i.sand { background: var(--sand); }

.mock-shelf { gap: 8px; }
.mock .shelf {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 92px;
  border-bottom: 2px solid rgb(246 240 232 / .22);
}
.mock .shelf-labels { display: flex; justify-content: space-around; font-size: 10.5px; color: var(--muted); }
.mock .shelf-labels span { width: 25%; text-align: center; }
.mock .bottle { position: relative; display: block; }
.mock .bottle::before { content: ""; position: absolute; background: rgb(246 240 232 / .55); }
.mock .pump { width: 30px; height: 70px; background: var(--sand); border-radius: 10px 10px 4px 4px; }
.mock .pump::before { left: 11px; top: -16px; width: 8px; height: 16px; border-radius: 2px 2px 0 0; box-shadow: 6px 0 0 -1px rgb(246 240 232 / .55); }
.mock .dropper { width: 28px; height: 50px; background: var(--accent); border-radius: 8px 8px 5px 5px; }
.mock .dropper::before { left: 9px; top: -20px; width: 10px; height: 20px; border-radius: 5px 5px 0 0; }
.mock .jar { width: 48px; height: 32px; background: var(--sage); border-radius: 6px; }
.mock .jar::before { left: -2px; top: -9px; width: 52px; height: 9px; border-radius: 3px; }
.mock .tube { width: 26px; height: 64px; background: rgb(246 240 232 / .72); border-radius: 12px 12px 3px 3px; }
.mock .tube::before { left: 6px; top: -9px; width: 14px; height: 9px; background: var(--accent); border-radius: 2px; }

.mock-photos { flex-direction: row; gap: 8px; padding: 16px; }
.mock .shot { position: relative; flex: 1; border-radius: 12px; overflow: hidden; }
.mock .shot.before {
  background:
    radial-gradient(circle at 56% 44%, rgb(170 78 62 / .85) 0 7%, transparent 20%),
    radial-gradient(circle at 64% 54%, rgb(170 78 62 / .6) 0 4%, transparent 13%),
    radial-gradient(circle at 48% 52%, rgb(170 78 62 / .5) 0 3%, transparent 11%),
    linear-gradient(160deg, #CB9678, #A8735A);
}
.mock .shot.after {
  background:
    radial-gradient(circle at 56% 44%, rgb(170 78 62 / .22) 0 6%, transparent 18%),
    linear-gradient(160deg, #CB9678, #A8735A);
}
.mock .spot {
  position: absolute;
  left: calc(56% - 28px);
  top: calc(44% - 28px);
  width: 56px;
  height: 56px;
  border: 1.5px dashed rgb(246 240 232 / .85);
  border-radius: 50%;
}
.mock .cap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(30 26 23 / .62);
  color: var(--on-ground);
  font-size: 10.5px;
  letter-spacing: .08em;
}

.mock-chart { gap: 4px; }
.mock .chart-head { display: flex; justify-content: space-between; align-items: center; color: var(--on-ground); font-size: 13px; }
.mock svg { display: block; overflow: visible; }
.mock svg .grid line { stroke: rgb(246 240 232 / .12); stroke-width: 1; }
.mock svg text { fill: var(--muted); font: 10px var(--font-ui); }
.mock svg text.gap { font-size: 9.5px; letter-spacing: .06em; }
.mock svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mock svg .dots circle { fill: var(--ground); stroke: var(--accent); stroke-width: 2; }

.mock .notice {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgb(201 135 107 / .45);
  border-radius: 14px;
  background: rgb(201 135 107 / .12);
}
.mock .notice-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.mock .notice-icon::before, .mock .notice-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent);
}
.mock .notice-icon::before { left: 9px; }
.mock .notice-icon::after { right: 9px; }
.mock .notice-body { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.mock .notice-body strong { margin-bottom: 2px; color: var(--on-ground); font-size: 13px; font-weight: 600; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 48px 32px;
  margin-top: 40px;
}
.steps .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
}
.ticks { display: grid; gap: 14px; margin: 28px 0 0; max-width: 40em; }
.ticks li { position: relative; padding-left: 30px; color: rgb(246 240 232 / .86); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.more { margin: 32px 0 0; }
.more a:not(.contact) { color: var(--on-ground); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.more .contact { display: inline-block; text-transform: none; letter-spacing: .04em; font-size: 15px; }
.site-foot {
  padding: 32px var(--gutter) 40px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}
.site-foot a { color: inherit; text-underline-offset: 3px; }
.site-foot a:hover { color: var(--on-ground); }
.contact:focus-visible { outline: 2px solid var(--on-ground); outline-offset: 4px; }

/* the portraits: a row of three, softened, fading up into the ground */
.photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}
.photos img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  filter: saturate(.8) sepia(.08) brightness(1.06);
}
.photos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--ground) 0%, rgb(30 26 23 / .35) 38%, rgb(30 26 23 / .2) 70%, rgb(30 26 23 / .75) 100%);
  pointer-events: none;
}
.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}
.foot a { color: inherit; text-underline-offset: 3px; }
.foot a:hover { color: var(--on-ground); }

/* the privacy policy (privacy.html): a reading column on the same ground */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand-link:focus-visible { outline: 2px solid var(--on-ground); outline-offset: 6px; border-radius: 4px; }
.doc-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.doc {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 80px) var(--gutter) 48px;
  flex: 1;
}
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc .updated { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
.doc h2 {
  margin: 44px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 60;
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.2;
  scroll-margin-top: 24px;
}
.doc p, .doc li { color: rgb(246 240 232 / .86); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.3em; }
.doc li { margin: 0 0 8px; }
.doc strong { color: var(--on-ground); font-weight: 600; }
.doc a { color: var(--on-ground); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc a:focus-visible { outline: 2px solid var(--on-ground); outline-offset: 2px; border-radius: 2px; }
.doc .summary {
  padding: 4px 22px 8px;
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.doc .summary h2 { margin-top: 18px; }
.doc .toc { margin: 36px 0 0; font-size: 15px; }
.doc .toc ol { columns: 2 16rem; column-gap: 32px; }
.doc .toc li { break-inside: avoid; margin-bottom: 6px; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid rgb(246 240 232 / .18);
  color: rgb(246 240 232 / .86);
}
.doc th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc td:first-child { width: 55%; }
.doc address { font-style: normal; margin: 0 0 14px; line-height: 1.7; }
.doc-foot {
  padding: 24px var(--gutter) 32px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}
.doc-foot a { color: inherit; }
@media (max-width: 560px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { position: absolute; left: -9999px; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid rgb(246 240 232 / .18); }
  .doc td { border: 0; padding: 4px 0; width: auto; }
  .doc td:first-child { width: auto; }
}

/* the step mockups in How it works */
.steps .mock {
  height: 184px;
  border: 1px solid rgb(246 240 232 / .16);
  border-radius: 16px;
  background: linear-gradient(160deg, rgb(246 240 232 / .09), rgb(246 240 232 / .03));
}
.mock .card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--on-ground);
}
.mock-today .row, .mock-kept .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgb(246 240 232 / .1);
}
.mock .when { width: 58px; flex: none; color: var(--muted); font-size: 11.5px; }
.mock .what { flex: 1; min-width: 0; color: rgb(246 240 232 / .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .ico { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; }
.mock .ico.sun { background: var(--sand); box-shadow: 0 0 0 3px rgb(216 180 138 / .22); }
.mock .ico.moon { background: transparent; box-shadow: inset -4px -2px 0 0 rgb(246 240 232 / .75); transform: rotate(-20deg); }
.mock .ico.leaf { background: var(--sage); border-radius: 0 50% 0 50%; }
.mock .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage);
  position: relative;
}
.mock .check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--ground);
  border-bottom: 2px solid var(--ground);
  transform: rotate(-45deg);
}
.mock .undo { flex: none; color: var(--accent); font-size: 11.5px; letter-spacing: .04em; }

.mock-pattern { gap: 8px; }
.mock .headline { color: var(--on-ground); font-family: var(--font-display); font-size: 15px; line-height: 1.3; }
.mock .bars { display: flex; gap: 22px; height: 70px; margin-top: 4px; }
.mock .group { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid rgb(246 240 232 / .18); }
.mock .bar { flex: 1; max-width: 34px; border-radius: 5px 5px 0 0; background: var(--sage); }
.mock .group + .group .bar { background: var(--accent); }
.mock .group .label { position: absolute; left: 0; bottom: -2px; transform: translateY(100%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.mock-pattern .bars { margin-bottom: 14px; }
