/*
 * demi.mx — the public product page.
 *
 * One flat coral (#EE7F5E, DESIGN.md "One ink"). On the light paper it is
 * 2.5:1, so it is decoration only (rules, numerals, markers); anything read at
 * body size is ink. On the dark ground it clears 7:1 and may carry text.
 * No inline styles anywhere: the page ships `style-src 'self'`.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --coral: #ee7f5e;
  --paper: #faf7f5;
  --surface: #ffffff;
  --wash: #f5ece7;
  --ink: #0b0b0b;
  --text: #3a3735;
  --muted: #625d5a;
  --line: rgba(11, 11, 11, 0.12);
  --accent-text: #0b0b0b;
  --button-bg: #0b0b0b;
  --button-fg: #ffffff;
  --display: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14100e;
    --surface: #1d1815;
    --wash: #241c18;
    --ink: #faf7f5;
    --text: #d9d3cf;
    --muted: #a8a09b;
    --line: rgba(255, 255, 255, 0.14);
    --accent-text: #ee7f5e;
    --button-bg: #faf7f5;
    --button-fg: #14100e;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-wrap: break-word;
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 3px;
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
strong {
  color: var(--ink);
  font-weight: 600;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--button-bg);
  color: var(--button-fg);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus {
  left: 16px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand img {
  width: 104px;
  height: 40px;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  padding: 8px 0;
}
.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--coral);
}
.site-nav a.button {
  padding: 10px 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--button-bg);
  background: var(--button-bg);
  color: var(--button-fg);
  font: 600 15px/1.2 var(--display);
  text-decoration: none;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}
.button:hover {
  opacity: 0.86;
  text-decoration: none;
}
.button:active {
  transform: scale(0.98);
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 40em;
}

section {
  padding: 88px 0;
}
.section-head {
  max-width: 46em;
  margin-bottom: 48px;
}
.section-head h2 {
  margin-bottom: 16px;
}
.band {
  background: var(--wash);
}

/* Hero */
.hero {
  padding: 56px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 span {
  display: block;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.12em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
}
.hero-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.hero-shots .phone:last-child {
  margin-top: 56px;
}

.phone,
.screen {
  margin: 0;
  background: #f8fafb;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 60px -32px rgba(60, 30, 20, 0.45);
}
.phone {
  border-radius: 28px;
  border-width: 6px;
  border-color: #1d1815;
}
.screen {
  border-radius: 16px;
}
figure {
  margin: 0;
}
figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Three ways */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  font-size: 16px;
}
.card p + p {
  margin-top: 10px;
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(238, 127, 94, 0.16);
  color: var(--ink);
  margin-bottom: 16px;
}

/* Workflow */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--coral);
  padding-top: 20px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 600 14px/1 var(--display);
  color: var(--muted);
  margin-bottom: 12px;
}
.steps h3 {
  margin-bottom: 8px;
}
.steps p {
  font-size: 16px;
}
.flow-shots {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
  margin-top: 56px;
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.feature.flip .feature-media {
  order: -1;
}
.feature h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 14px;
}
.feature-media.narrow {
  max-width: 300px;
  justify-self: center;
  width: 100%;
}
.checks {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.more {
  margin-top: 40px;
}

/* Privacy */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.principles h3 {
  margin-bottom: 8px;
}
.principles li {
  border-left: 3px solid var(--coral);
  padding-left: 20px;
}

/* Onboarding */
.setup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: setup;
}
.setup li {
  counter-increment: setup;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.setup li::before {
  content: counter(setup);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  font: 600 15px/1 var(--display);
  color: var(--ink);
  margin-bottom: 14px;
}
.setup h3 {
  margin-bottom: 6px;
}
.setup p {
  font-size: 16px;
}

/* FAQ */
.faq {
  max-width: 820px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font: 600 1.1rem/1.35 var(--display);
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 400 20px/1 var(--body);
  color: var(--ink);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding: 0 48px 22px 0;
}

/* Contact */
.contact {
  text-align: center;
}
.contact .lead {
  margin: 16px auto 0;
}
.contact .actions {
  justify-content: center;
}
.contact-mail {
  margin-top: 22px;
  font-size: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}
.footer-grid img {
  width: 84px;
  height: 32px;
  margin-bottom: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-content: start;
}

/* 404 */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature,
  .flow-shots {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature.flip .feature-media {
    order: 0;
  }
  .hero-shots {
    max-width: 460px;
  }
  .flow-shots .phone {
    max-width: 260px;
  }
  .steps,
  .setup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ways,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 20px;
  }
  .site-nav .optional {
    display: none;
  }
  .site-nav {
    gap: 6px 14px;
  }
  .steps,
  .setup,
  .grid-2,
  .principles {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 28px 0 56px;
  }
  .actions .button {
    width: 100%;
  }
  .faq details p {
    padding-right: 0;
  }
  .card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
