/* Moppie website. Rinse design tokens: see docs/design-principles.md */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --linen: #F1F6F5;
  --surface: #FFFFFF;
  --ink: #14302A;
  --ink-soft: #3F5A53;
  --muted: #5E746E;
  --rinse: #1E9C7E;
  --rinse-text: #13765F;
  --on-rinse: #FFFFFF;
  --control: #7A8B86;
  --hairline: #DCE7E3;
  --mint-wash: #DDEFEA;
  --band: #14302A;
  --band-text: #FFFFFF;
  --band-soft: #BFD4CE;
  --glow: linear-gradient(160deg, #DFF4EC 0%, #D9EFF8 60%, #FFF3CC 100%);
  --phone-frame: #0B0D10;
  --phone-edge: 0 0 0 1px rgba(20, 48, 42, 0.08);
  --card-edge: 0 1px 0 var(--hairline);
  --shadow: 0 30px 60px -28px rgba(20, 48, 42, 0.55);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #0B1513;
    --surface: #15221F;
    --ink: #E6F2EF;
    --ink-soft: #B9CCC6;
    --muted: #8DA7A0;
    --rinse: #46CFA9;
    --rinse-text: #6FE0C0;
    --on-rinse: #0B1513;
    --control: #6E807A;
    --hairline: #26362F;
    --mint-wash: #18332C;
    --band: #113A31;
    --band-text: #E6F2EF;
    --band-soft: #A8C7BE;
    --glow: linear-gradient(160deg, #10302A 0%, #0F2A38 60%, #2B2A16 100%);
    --phone-frame: #1F2B28;
    --phone-edge: 0 0 0 1px #3A4D47, inset 0 0 0 1px #2C3A36;
    --card-edge: 0 0 0 1px #2A3D37;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--linen); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--rinse-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rinse); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.section { padding-block: 72px; }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1.08; }
.lead { font-size: clamp(17px, 2vw, 20px); font-weight: 600; color: var(--ink-soft); max-width: 34em; }
.pill { display: inline-block; font-size: 14px; font-weight: 800; color: var(--rinse-text); background: var(--mint-wash); padding: 6px 12px; border-radius: 999px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 15px 22px; border-radius: 999px; font-weight: 800; font-size: 17px; border: none; font-family: inherit; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--linen); }
.btn-primary:hover { color: var(--linen); opacity: 0.9; }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline); }
.btn-secondary:hover { color: var(--ink); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 900; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; font-weight: 700; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav .btn { padding: 10px 16px; font-size: 15px; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--linen); }
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { padding: 8px 14px; font-size: 14px; }
}

/* Hero */
.hero { padding-block: 24px 80px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-note { font-size: 14px; font-weight: 700; color: var(--muted); }
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-wrap { position: relative; }
.float { position: absolute; width: 64px; height: 64px; animation: floaty 6s ease-in-out infinite; pointer-events: none; }
/* Two on each side, the same distance from the frame, staggered top and bottom. */
.float.f1 { left: -104px; top: 70px; width: 72px; height: 72px; }
.float.f2 { right: -96px; top: 150px; width: 60px; height: 60px; animation-delay: .6s; animation-duration: 7s; }
.float.f3 { left: -92px; bottom: 150px; width: 60px; height: 60px; animation-delay: 1.2s; }
.float.f4 { right: -92px; bottom: 70px; width: 56px; height: 56px; animation-delay: .3s; animation-duration: 5.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hint { font-size: 15px; font-weight: 800; color: var(--rinse-text); white-space: nowrap; }
@media (max-width: 1000px) { .float { display: none; } }

/* Phone */
.phone { position: relative; display: flex; width: 300px; max-width: 100%; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 10px; background: var(--phone-frame); box-shadow: var(--phone-edge), var(--shadow); }
.phone-sm { width: 280px; }
.screen { border-radius: 37px; overflow: hidden; background: var(--linen); padding: 50px 16px 12px; flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 10px; transition: background .6s; }
.screen.done { background: var(--glow); }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: #0B0D10; }
.home-bar { margin-top: 4px; align-self: center; flex: none; width: 108px; height: 5px; border-radius: 999px; background: var(--ink); opacity: .85; }
.screen-later { font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--control) 45%, transparent); }
.home-card { margin-top: auto; background: var(--surface); border-radius: 20px; padding: 12px 6px 10px; box-shadow: var(--card-edge); }
.home-title { display: block; font-size: 12px; font-weight: 900; color: var(--muted); padding-left: 8px; margin-bottom: 6px; }
.screen-date { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.screen-title { font-size: 28px; font-weight: 900; margin-top: -6px; }
.screen-summary { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: -6px; }
.task { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 18px; border: none; background: var(--surface); color: var(--ink); box-shadow: var(--card-edge); font-family: inherit; text-align: left; cursor: pointer; transition: opacity .3s; }
.task.static { cursor: default; }
.task:active .check { transform: scale(.88); }
.check { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--control); display: grid; place-items: center; transition: transform .18s cubic-bezier(.3,1.6,.5,1), background .2s, border-color .2s; }
.check svg { width: 14px; height: 14px; }
.check path { fill: none; stroke: var(--on-rinse); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .25s ease-out .05s; }
.task[aria-pressed="true"] { opacity: .6; }
.task[aria-pressed="true"] .check { background: var(--rinse); border-color: var(--rinse); }
.task[aria-pressed="true"] .check path { stroke-dashoffset: 0; }
.task[aria-pressed="true"] .task-name { text-decoration: line-through; text-decoration-color: var(--rinse); text-decoration-thickness: 2px; }
.task img { width: 32px; height: 32px; }
.task-text { display: flex; flex-direction: column; min-width: 0; }
.task-name { font-size: 14px; font-weight: 800; }
.task-meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst span { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: burst .65s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes burst { 0% { transform: translate(0,0) scale(.3); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); }
.room { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.room .ring { margin-bottom: 4px; }
.room-name { font-size: 12px; font-weight: 900; }
.room-word { font-size: 11px; font-weight: 700; color: var(--muted); }
.ring { position: relative; width: 52px; height: 52px; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: var(--hairline); }
.ring .fill { stroke: var(--rinse); stroke-linecap: round; stroke-dasharray: 138.2; transition: stroke-dashoffset .7s cubic-bezier(.3,1.3,.5,1); }
.ring img { position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; }
.room.hop .ring img { animation: hop .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-9px) scale(1.12); } 70% { transform: translateY(1px) scale(.96); } 100% { transform: none; } }

/* Promises */
.band { background: var(--surface); }
.promises-list { display: flex; flex-direction: column; gap: 12px; }
.promise { width: 100%; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 22px; border: 2px solid var(--hairline); background: var(--surface); color: var(--ink); font-family: inherit; text-align: left; cursor: pointer; }
.promise:hover { border-color: var(--control); }
.promise[aria-selected="true"] { border-color: var(--rinse); background: var(--linen); }
.promise img { width: 40px; height: 40px; flex: none; }
.promise-title { display: block; font-size: 19px; font-weight: 900; }
.promise-text { display: block; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.shot-stage { display: flex; justify-content: center; }
.view { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.view[hidden] { display: none; }
.view.center { align-items: center; justify-content: center; text-align: center; }
.view-art { width: 96px; height: 96px; }
.view[data-view="fair"] .view-art { width: 64px; height: 64px; }
.view-big { font-size: 28px; font-weight: 900; line-height: 1.08; }
.view-small { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.view-note { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: auto; text-align: center; }
.view-card { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-edge); font-size: 14px; font-weight: 700; color: var(--muted); }
.view-card strong { font-size: 16px; font-weight: 900; color: var(--ink); }
.view-chip { font-size: 14px; font-weight: 800; color: var(--rinse-text); background: var(--mint-wash); padding: 8px 14px; border-radius: 999px; }
.view.center .rooms { width: 100%; margin-top: 8px; }
.view-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.view-list li { display: flex; gap: 8px; align-items: center; }
.view-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-wash); color: var(--rinse-text); font-size: 13px; font-weight: 900; }
.view-cta { margin-top: auto; text-align: center; padding: 13px; border-radius: 999px; background: var(--ink); color: var(--linen); font-size: 15px; font-weight: 800; }
.view-alt { text-align: center; padding: 11px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--hairline); font-size: 15px; font-weight: 800; }
.view[data-view="fair"] .view-note { margin-top: 0; }

/* How it works */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--card-edge); }
.card img { width: 56px; height: 56px; }
.card-step { font-size: 14px; font-weight: 800; color: var(--rinse-text); }
.card h3 { font-size: 22px; font-weight: 900; }
.card p { font-size: 16px; font-weight: 600; color: var(--ink-soft); }

/* Schedule maker teaser */
.maker { border-radius: 36px; background: var(--glow); padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center; }
.maker-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.maker .pill { background: var(--surface); }
.week { background: var(--surface); border-radius: 24px; padding: 18px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; box-shadow: 0 20px 40px -24px rgba(20,48,42,0.45); }
.day { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.day-name { font-size: 12px; font-weight: 900; color: var(--muted); }
.chore { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: var(--linen); font-size: 10px; font-weight: 800; text-align: center; line-height: 1.15; }
.chore img { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .week { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .day { flex-direction: row; align-items: center; gap: 8px; }
  .day-name { width: 36px; flex: none; font-size: 13px; }
  .chore { width: auto; flex: 1; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 6px 10px; font-size: 13px; }
  .chore img { width: 20px; height: 20px; }
}
.soon { font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 820px; }
.faq .h2 { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--card-edge); }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rinse-text); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink-soft); }

/* Coming soon band */
.launch { border-radius: 36px; background: var(--band); color: var(--band-text); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: 0 0 0 1px var(--hairline); }
.launch p { color: var(--band-soft); font-size: 17px; font-weight: 600; max-width: 36em; margin-top: 8px; }
.launch .h2 { color: var(--band-text); }
.launch-art { width: 88px; height: 88px; }
@media (max-width: 600px) { .launch-art { display: none; } }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 40px; font-size: 14px; font-weight: 700; color: var(--muted); }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 22px; height: 22px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer nav a { text-decoration: none; color: var(--muted); }
@media (max-width: 600px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .burst { display: none; }
}


