/* dent2brain website. Direction: Salt flat. Manrope only, served from this folder. */
@font-face {
  font-family: Manrope;
  src: url('fonts/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #161827;
  --panel: #1F2235;
  --coral: #E0766A;
  --coral-2: #F3A9A0;
  --paper: #F6EEEC;
  --mute: #555a70;
  --mute-dark: #c3c5d6;
  --line: rgba(22, 24, 39, .1);
  --sky: linear-gradient(180deg, #C9CDE6 0%, #E6D5E0 52%, #F5D6CD 100%);
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mark-s: var(--ink);
  --mark-f: var(--coral);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.areas :focus-visible, .foot :focus-visible { outline-color: var(--coral-2); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }

h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.1;
  max-width: 22ch;
  text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--mute); max-width: 60ch; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--coral); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2d45; }
.btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(22, 24, 39, .22); }
.btn-quiet:hover { background: rgba(255, 255, 255, .45); }
.btn-big { min-height: 54px; padding: 0 30px; font-size: 17px; }

/* logo: the tooth and brain lockup */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1; text-decoration: none; color: var(--ink);
}
.logo-mark { width: 22px; height: 28px; flex: none; }
.logo-light { color: #fff; --mark-s: #fff; --mark-f: var(--coral-2); }

/* header */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 22px var(--gut);
}
.links { display: flex; gap: 30px; margin-left: auto; }
.links a { font-size: 15px; font-weight: 600; color: #2c2f45; text-decoration: none; }
.links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* hero */
.hero {
  background: linear-gradient(180deg, #C9CDE6 0%, #E6D5E0 34%, #F5D6CD 62%, var(--paper) 88%);
  padding: clamp(120px, 15vw, 170px) var(--gut) clamp(24px, 3vw, 40px);
}
.hero-text { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 78px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.04;
  margin: 0 auto 22px;
  max-width: 19ch;
  text-wrap: balance;
}
.hero .lede { margin: 0 auto; color: #3b3f56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-shot { max-width: var(--wrap); margin: clamp(48px, 6vw, 72px) auto 0; }
.hero-shot img {
  width: 100%; border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 80px -30px rgba(40, 36, 70, .35), 0 0 0 1px rgba(22, 24, 39, .08);
}
figcaption { font-size: 14px; color: var(--mute); margin-top: 14px; text-align: center; }

/* one orchestrated load: the words, then the screen */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.in { animation: rise .8s var(--ease) both; }
.in-2 { animation-delay: .1s; }
.in-3 { animation-delay: .2s; }
.in-4 { animation-delay: .35s; animation-duration: 1s; }

/* how a morning works */
.morning { padding: clamp(72px, 9vw, 120px) 0; }
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  margin-top: clamp(40px, 5vw, 60px); counter-reset: s;
}
.steps li { border-top: 1.5px solid var(--line); padding-top: 22px; }
.steps .n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--coral-2);
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
}
.steps li:nth-child(4) .n, .steps li:nth-child(5) .n { background: var(--ink); color: #fff; box-shadow: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--mute); }

/* the main areas, on ink */
.areas { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 130px) 0; }
.areas .kicker { color: #fff; }
.areas .kicker::before { background: var(--coral-2); }
.areas .grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 56px); row-gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(44px, 5vw, 64px);
}
.area img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: #2a2d45; }
.area h3 { margin: 26px 0 8px; font-size: 21px; }
.area p { color: var(--mute-dark); max-width: 52ch; }

/* safety */
.safety { padding: clamp(80px, 10vw, 130px) 0; }
.safety-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.safety .lede { margin-top: 18px; }
.points { margin-top: 36px; display: grid; gap: 0; }
.points li { padding: 20px 0; border-top: 1.5px solid var(--line); }
.points h3 { margin-bottom: 6px; }
.points p { color: var(--mute); font-size: 16px; }
.safety-shot { background: var(--sky); border-radius: 24px; padding: clamp(18px, 3vw, 34px); }
.safety-shot img { width: 100%; max-width: 426px; margin: 0 auto; border-radius: 14px; box-shadow: 0 20px 50px -24px rgba(40, 36, 70, .35), 0 0 0 1px rgba(22, 24, 39, .06); }
.safety-shot figcaption { color: #3b3f56; }

/* questions */
.faq { padding: 0 0 clamp(80px, 10vw, 130px); }
.faq h2 { margin-bottom: 32px; }
details { border-top: 1.5px solid var(--line); }
details:last-of-type { border-bottom: 1.5px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 2px 24px; color: var(--mute); max-width: 66ch; }

/* closing call to action */
.close { background: var(--sky); padding: clamp(80px, 10vw, 128px) 0; text-align: center; }
.close h2 { margin: 0 auto 16px; }
.close .lede { margin: 0 auto 32px; color: #3b3f56; }

/* footer */
.foot { background: var(--ink); color: var(--mute-dark); padding: 48px 0 56px; font-size: 14px; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.foot-note { max-width: 56ch; }
.foot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.foot-meta a { color: #fff; }

/* 404 */
.lost { min-height: 100vh; background: var(--sky); }
.lost-main {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 120px var(--gut) 80px; text-align: center;
}
.lost-main h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.lost-main .lede { color: #3b3f56; margin-bottom: 10px; }

/* widths */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 900px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .safety-grid { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; gap: 18px; }
  .foot-meta { align-items: flex-start; }
}
@media (max-width: 860px) {
  .areas .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 20px 0; }
  .steps .n { grid-row: span 2; margin: 0; }
  .hero-shot img { border-radius: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  summary { font-size: 17px; }
}
@media (max-width: 400px) {
  .logo { font-size: 20px; }
  .nav { gap: 12px; }
  .nav-cta { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
