/* Skincare by Neli: the app's Soft Clay look, carried to the web.
   Colours mirror mobile/lib/theme/palette.dart; fonts are the app's own,
   served from this site so no page contacts a third party. */

@font-face { font-family: "Cormorant"; src: url("/assets/fonts/CormorantGaramond-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F0DED5;       /* homePaper: the app's powdered-clay page */
  --card: #F8EEE9;        /* a lifted clay surface */
  --line: #DCC3B9;
  --line-soft: #E8D5CC;
  --ink: #422F2D;         /* cocoa900 */
  --ink-muted: #6B524F;   /* cocoa500 */
  --accent: #794F50;      /* rosewood: primary actions */
  --accent-deep: #624041; /* rosewoodDeep */
  --accent-ink: #F7EAE2;  /* onRosewood */
  --clay: #AD7D76;        /* homeRoseRail: decorative only */
  --rose-soft: #E4C7C1;   /* homeRoseTile */
  --sage-soft: #DCE4D7;   /* tileSage */
  --sage-deep: #47624A;   /* claySuccess */
  --danger: #9C3F42;
  --glow: rgba(255, 248, 244, .55);
  --shadow: 0 1px 2px rgba(66, 47, 45, .05), 0 14px 36px -14px rgba(66, 47, 45, .22);
  --phone-shadow: 0 2px 4px rgba(66, 47, 45, .08), 0 40px 70px -30px rgba(66, 47, 45, .45);
  color-scheme: light;
}

/* Dark when the visitor picked it (theme.js sets data-theme). Without
   JavaScript there is no data-theme, so the system setting decides. */
:root[data-theme="dark"] {
  --paper: #191917;       /* homeNight */
  --card: #24211F;
  --line: #3E3632;
  --line-soft: #2E2926;
  --ink: #EEE5DF;         /* blush100d */
  --ink-muted: #B5AAA5;   /* warmGray300 */
  --accent: #D5AA96;      /* homePeachAction */
  --accent-deep: #E4C2B2;
  --accent-ink: #1E1716;
  --clay: #C9A58E;
  --rose-soft: #3A2A28;   /* tileRoseDark */
  --sage-soft: #2A322A;   /* tileSageDark */
  --sage-deep: #AEBBA5;
  --danger: #E18C8F;
  --glow: rgba(213, 170, 150, .10);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
  --phone-shadow: 0 0 0 1px #3E3632, 0 2px 4px rgba(0, 0, 0, .4), 0 40px 70px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #191917;       /* homeNight */
    --card: #24211F;
    --line: #3E3632;
    --line-soft: #2E2926;
    --ink: #EEE5DF;         /* blush100d */
    --ink-muted: #B5AAA5;   /* warmGray300 */
    --accent: #D5AA96;      /* homePeachAction */
    --accent-deep: #E4C2B2;
    --accent-ink: #1E1716;
    --clay: #C9A58E;
    --rose-soft: #3A2A28;   /* tileRoseDark */
    --sage-soft: #2A322A;   /* tileSageDark */
    --sage-deep: #AEBBA5;
    --danger: #E18C8F;
    --glow: rgba(213, 170, 150, .10);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
    --phone-shadow: 0 0 0 1px #3E3632, 0 2px 4px rgba(0, 0, 0, .4), 0 40px 70px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* Each screenshot comes in a light and a dark cut; show the one that matches. */
.is-dark { display: none !important; }
:root[data-theme="dark"] .is-light { display: none !important; }
:root[data-theme="dark"] .is-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .is-light { display: none !important; }
  :root:not([data-theme]) .is-dark { display: block !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---- header / footer ---- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font: 400 26px/1 "Cormorant", Georgia, serif; letter-spacing: -.01em; }
.head-end { display: flex; align-items: center; gap: 22px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--clay); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 560px) { .head-end { gap: 14px; } .theme-toggle { width: 36px; height: 36px; } }
@media (max-width: 480px) {
  .site-head .wrap { flex-wrap: nowrap; }
  .brand { gap: 10px; } .brand img { width: 34px; height: 34px; border-radius: 9px; } .brand span { font-size: 22px; }
}

.site-foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; font-size: 14px; color: var(--ink-muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-muted); }

/* ---- shared type ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { font: 400 clamp(44px, 7vw, 76px)/1.02 "Cormorant", Georgia, serif; letter-spacing: -.02em; margin: 18px 0 22px; }
.display em { font-style: normal; color: var(--accent); }
.lede { font-size: 18px; color: var(--ink-muted); max-width: 30em; margin: 0; }

/* ---- landing ---- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 32px 0 88px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 12px; gap: 24px; } }

.status {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--rose-soft); }

/* A phone: the app's own screenshot in a slim bezel. */
.phone {
  position: relative; aspect-ratio: 390 / 844; border-radius: 40px; overflow: hidden;
  border: 7px solid #1F1A19; background: #1F1A19; box-shadow: var(--phone-shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone::after { /* the island */
  content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 20px; margin-left: -15%;
  border-radius: 999px; background: #1F1A19;
}

.phones { position: relative; height: 640px; }
.phones::before { /* a soft halo the phones stand in, like the app's illustration halos */
  content: ""; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -48%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent), var(--rose-soft);
}
@media (max-width: 520px) { .phones::before { width: 330px; height: 330px; } }
.phones .phone { position: absolute; }
.phones .left  { width: 200px; left: 2%;  top: 120px; transform: rotate(-6deg); }
.phones .right { width: 200px; right: 2%; top: 120px; transform: rotate(6deg); }
.phones .front { width: 262px; left: 50%; top: 20px; margin-left: -131px; z-index: 2; }
@media (max-width: 1040px) and (min-width: 901px) { .phones .left, .phones .right { width: 170px; } }
@media (max-width: 900px) { .phones { max-width: 560px; width: 100%; margin: 0 auto; } }
@media (max-width: 520px) {
  .phones { height: 420px; }
  .phones .front { width: 190px; margin-left: -95px; top: 10px; border-width: 5px; border-radius: 30px; }
  .phones .left, .phones .right { width: 138px; top: 86px; border-width: 5px; border-radius: 24px; }
  .phones .left { left: 0; } .phones .right { right: 0; }
  .phone::after { height: 14px; top: 7px; }
  }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  .phones .left  { animation: fan-left 1.1s .22s cubic-bezier(.2, .7, .2, 1) both; }
  .phones .right { animation: fan-right 1.1s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .phones .front { animation: rise 1.1s .05s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fan-left { from { opacity: 0; transform: rotate(0) translateY(30px); } }
  @keyframes fan-right { from { opacity: 0; transform: rotate(0) translateY(30px); } }
}

/* ---- section headings ---- */
.section-head { max-width: 560px; margin: 0 auto 8px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font: 400 clamp(36px, 5vw, 48px)/1.05 "Cormorant", Georgia, serif; letter-spacing: -.01em; margin: 14px 0 12px; }
.section-head p { margin: 0; color: var(--ink-muted); }

/* ---- one row per feature, each with its own screen ---- */
.showcase { border-top: 1px solid var(--line); padding-top: 88px; }
.show {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  margin-top: 72px;
}
.show-art {
  position: relative; display: grid; place-items: center; padding: 48px 0; border-radius: 36px;
  background: radial-gradient(100% 70% at 50% 0%, var(--glow), transparent 70%), var(--rose-soft);
}
.show:nth-child(odd of .show) .show-art { background: radial-gradient(100% 70% at 50% 0%, var(--glow), transparent 70%), var(--sage-soft); }
.show-art .phone { width: 250px; }
.show:nth-child(even of .show) .show-art { order: 2; }
.show-text .num { font: 400 18px/1 "Cormorant", Georgia, serif; color: var(--clay); }
.show-text h3 { font: 400 clamp(32px, 4vw, 42px)/1.08 "Cormorant", Georgia, serif; letter-spacing: -.01em; margin: 12px 0 14px; }
.show-text p { margin: 0; color: var(--ink-muted); font-size: 17px; max-width: 28em; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50% 0; background: var(--clay); }
@media (max-width: 860px) {
  .showcase { padding-top: 64px; }
  .show { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .show:nth-child(even of .show) .show-art { order: 0; }
  .show-art { padding: 36px 0; }
  .show-art .phone { width: 220px; }
}

/* ---- the smaller helpers ---- */
.reminders { margin-top: 120px; display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.reminders-intro h2 { font: 400 40px/1.05 "Cormorant", Georgia, serif; letter-spacing: -.01em; margin: 14px 0 12px; }
.reminders-intro p { margin: 0; color: var(--ink-muted); }
.reminder-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reminder { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; box-shadow: var(--shadow); }
.reminder svg { width: 38px; height: 38px; color: var(--accent); padding: 8px; border-radius: 12px; background: var(--rose-soft); }
.reminder:nth-child(even) svg { color: var(--sage-deep); background: var(--sage-soft); }
.reminder h3 { font: 400 26px/1.1 "Cormorant", Georgia, serif; margin: 16px 0 8px; }
.reminder p { margin: 0; font-size: 15px; color: var(--ink-muted); }
@media (max-width: 960px) { .reminders { grid-template-columns: 1fr; gap: 24px; margin-top: 96px; } }
@media (max-width: 600px) { .reminder-cards { grid-template-columns: 1fr; } }

.promise {
  margin-top: 96px; display: grid; grid-template-columns: 220px 1fr; gap: 40px;
  padding: 40px; border-radius: 28px; background: var(--sage-soft);
}
.promise h2 { font: 400 34px/1.05 "Cormorant", Georgia, serif; margin: 0; color: var(--sage-deep); }
.promise ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.promise li { padding-left: 22px; position: relative; font-size: 15px; }
.promise li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50% 0; background: var(--sage-deep); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; padding: 28px 22px; gap: 20px; } .promise ul { grid-template-columns: 1fr; } }

.closing { margin-top: 112px; text-align: center; }
.closing img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.closing h2 { font: 400 clamp(36px, 5vw, 52px)/1.05 "Cormorant", Georgia, serif; letter-spacing: -.01em; margin: 0 0 12px; }
.closing p { margin: 0 auto; color: var(--ink-muted); max-width: 30em; }
.closing .status { margin-top: 24px; }

/* ---- document pages ---- */
.doc { max-width: 720px; padding-top: 24px; }
.doc h1 { font: 400 clamp(40px, 6vw, 56px)/1.05 "Cormorant", Georgia, serif; letter-spacing: -.02em; margin: 16px 0 8px; }
.doc .updated { color: var(--ink-muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font: 400 28px/1.15 "Cormorant", Georgia, serif; margin: 48px 0 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.doc h3 { font-size: 16px; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--clay); }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; font-size: 15px; }
.doc .toc ol { margin: 8px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .doc .toc ol { columns: 1; } }

.callout { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: 14px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.callout.warn { border-left-color: var(--danger); }

table.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
table.data th, table.data td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
@media (max-width: 560px) {
  table.data thead { display: none; }
  table.data tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  table.data td { display: block; border: 0; padding: 2px 0; }
  table.data td:first-child { font-weight: 600; }
}

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 48px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rose-soft); color: var(--accent-deep); font-weight: 600; font-size: 14px;
}

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-muted); }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin: 8px 0 24px;
}
.contact-card strong { display: block; font: 400 26px/1.1 "Cormorant", Georgia, serif; }
.contact-card span { color: var(--ink-muted); font-size: 14px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.btn:hover { background: var(--accent-deep); color: var(--accent-ink); }

.notfound { text-align: center; padding: 80px 0 40px; }
.notfound h1 { font: 400 72px/1 "Cormorant", Georgia, serif; margin: 0 0 12px; }
