/* MimoDays website. Tokens, fonts and the hand-cut shapes come from the app. */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/PatrickHand-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #F3E8DE;
  --soft: #EFE1D5;
  --card: #FBF6EF;
  --ink: #4A2734;
  --muted: #725C61;
  --coral: #F06E45;
  /* The app's link colour (#C9512B) is a little light for small text on the web; this one keeps AA contrast. */
  --link: #A63D1C;
  --peach: #F8D7C3;
  --mint: #D8DBC1;
  --apricot: #F29537;
  --plum: #211C24;
  --plum-card: #2E272F;
  --on-plum: #F5EADF;
  --on-plum-muted: #BFAEA8;
  --border: #E4D5CB;
  --device: #2A1B21;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
  --label: "Inter", system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;

  --gutter: clamp(20px, 6vw, 120px);
  --content: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, calc(var(--content) + 2 * var(--gutter))); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 13px/1.2 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow img { width: 15px; }
.h1 { font: 600 clamp(48px, 6.2vw, 88px)/1.0 var(--serif); letter-spacing: -.01em; }
.h2 { font: 600 clamp(36px, 3.9vw, 56px)/1.08 var(--serif); letter-spacing: -.005em; }
.h3 { font: 600 clamp(19px, 1.6vw, 22px)/1.25 var(--serif); }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; max-width: 560px; margin-top: 24px; }
.small { font-size: 14px; color: var(--muted); }
.link { color: var(--link); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero__note { margin-top: 26px; }
.hand { font-family: var(--hand); font-weight: 400; }
.underlined { position: relative; white-space: nowrap; }
.underlined::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: -.12em; height: .16em; background: url("underline.svg") center / 100% 100% no-repeat; }

/* Hand-cut shapes: site.js draws an uneven outline behind every .cut; without it, a plain rounded card. */
.cut { position: relative; isolation: isolate; background: var(--cut-fill, var(--card)); border: 1.25px solid var(--cut-stroke, var(--ink)); border-radius: 22px; }
.cut.is-drawn { background: none; border-color: transparent; }
.cut > svg.cut__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; }

/* Header */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100px; }
.wordmark { display: inline-flex; align-items: flex-start; gap: 2px; font: 600 26px/1 var(--serif); text-decoration: none; }
.wordmark img { width: 17px; margin-top: -6px; }
.nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav a { font-weight: 700; font-size: 16px; text-decoration: none; }
.nav a:hover { color: var(--link); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; color: var(--ink); cursor: pointer; }
.menu-button span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; margin: 5px 0; }

/* Not Apple's badge: that is only for apps already on the App Store. A plain line until the release. */
.soon { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 10px; border-radius: 999px; background: var(--card); color: var(--ink); font: 700 15px/1 var(--sans); white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--border); }
.soon img { width: 28px; height: 28px; border-radius: 7px; }
.soon--large { height: 56px; padding-right: 24px; font-size: 17px; }
.soon--large img { width: 34px; height: 34px; border-radius: 8px; }

/* The story: sections 1-6, with one phone that stays put on wide screens. */
.story { position: relative; }
.chapter { position: relative; }
.chapter--soft { background: var(--soft); }
.chapter--plum { background: var(--plum); color: var(--on-plum); }
.chapter--plum .eyebrow { color: var(--on-plum-muted); }
.chapter__body { min-height: 860px; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; max-width: 620px; }
.chapter__body > .lead { max-width: 560px; }
.chapter--plum .lead { color: #E9DCD3; }
.hero .chapter__body { min-height: calc(860px - 100px); padding-top: 40px; }

.rail { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.rail .wrap { height: 100%; display: flex; justify-content: flex-end; }
.rail__track { height: 100%; padding: 20px 10px 120px 0; }

/* Phone */
.phone {
  --pw: 236px;
  width: var(--pw);
  padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .17);
  background: var(--device);
  box-shadow: 0 30px 60px -20px rgba(74, 39, 52, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone__screen { position: relative; aspect-ratio: 402 / 874; border-radius: calc(var(--pw) * .14); overflow: hidden; background: #3b2e31; }
.phone__screen > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.phone__screen > .is-on { opacity: 1; }
.rail .phone { --pw: min(340px, 25vw, calc((100vh - 72px) / 2.35)); position: sticky; top: max(24px, calc(50vh - var(--pw) * 1.05)); }
.phone--inline { display: none; margin: 40px auto 0; }

/* Section extras */
.notification { display: grid; grid-template-columns: 38px 1fr auto; gap: 4px 12px; align-items: start; max-width: 400px; margin-top: 44px; padding: 14px 18px; border-radius: 22px; background: rgba(251, 246, 239, .95); box-shadow: 0 10px 30px -12px rgba(74, 39, 52, .35); font-family: var(--label); }
.notification img { grid-row: span 3; width: 38px; height: 38px; border-radius: 9px; }
.notification .app { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.notification .time { font-size: 12px; color: var(--muted); }
.notification .title { grid-column: 2 / 4; font-size: 15px; font-weight: 700; }
.notification .body { grid-column: 2 / 4; font-size: 15px; }
.ribbon { --cut-fill: var(--mint); display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 22px; font: 400 19px/1.2 var(--hand); }
.ribbon img { width: 17px; }

.footnote { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 460px; }

.note { --cut-fill: var(--card); max-width: 420px; margin: 44px 0 0; padding: 22px 26px; transform: rotate(-1.5deg); }
.note p { font: 400 22px/1.3 var(--hand); }
.note span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.voice { --cut-fill: var(--card); max-width: 400px; margin: 20px 0 0 24px; padding: 16px 20px; transform: rotate(1deg); }
.voice__row { display: flex; align-items: center; gap: 12px; }
.voice__play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
.voice__play::before { content: ""; border-left: 10px solid var(--card); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.voice__wave { flex: 1; height: 28px; color: var(--ink); }
.voice__time { font-size: 14px; font-weight: 700; color: var(--muted); }
.voice p { margin-top: 10px; font: 400 18px/1.3 var(--hand); }
.voice small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.cards { display: grid; gap: 16px; margin-top: 40px; }
.cards--stack { max-width: 460px; }
.feature { padding: 18px 22px 18px 54px; }
.feature::before { content: ""; position: absolute; left: 22px; top: 22px; width: 17px; height: 18px; background: url("star.svg") center / contain no-repeat; }
.feature p, .option p, .fact p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); }

.cards--options { grid-template-columns: repeat(3, 1fr); max-width: 620px; }
.option { --cut-fill: var(--plum-card); --cut-stroke: #5A4A50; padding: 18px 20px; }
.option p { color: var(--on-plum-muted); }
.months { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 40px; list-style: none; padding: 0; font: 600 12px/1 var(--label); letter-spacing: .14em; color: var(--on-plum-muted); }
.months .now { color: var(--coral); position: relative; }
.months .now::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -9px; height: 6px; background: url("underline.svg") center / 100% 100% no-repeat; }
.chapter--plum .wrap { position: relative; }
.spark { position: absolute; right: 6%; top: 90px; width: 34px; }

/* Privacy */
.privacy { background: var(--soft); padding: 120px 0; }
.privacy .lead { max-width: 560px; }
.cards--facts { grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.fact { padding: 20px 22px 22px; }

/* FAQ */
.faq { padding: 110px 0 60px; }
.faq__list { display: grid; gap: 14px; margin-top: 44px; }
.faq__item { padding: 0 30px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; cursor: pointer; list-style: none; font: 600 clamp(19px, 1.6vw, 22px)/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 700 28px/1 var(--sans); color: var(--coral); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 1000px; padding: 0 0 24px; color: var(--muted); }

/* Final call */
.final { padding: 80px 0 100px; }
.final__panel { --cut-fill: var(--peach); padding: 70px 60px 64px; }
.final__panel .h2 { max-width: 700px; margin-top: 12px; }
.final__panel .lead { margin-top: 20px; }
.final .cta-row .hand { font-size: 20px; color: var(--muted); }
.final__phone { position: absolute; right: 80px; top: -40px; transform: rotate(4deg); }
.final__phone.phone { --pw: 210px; }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; background: linear-gradient(var(--border), var(--border)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.site-footer .wordmark { font-size: 22px; }
.site-footer p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.footer-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-weight: 700; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--link); }
.legal-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; font-size: 13px; color: var(--muted); }

/* Legal pages */
.doc { width: min(100%, calc(720px + 2 * var(--gutter))); margin: 0 auto; padding: 50px var(--gutter) 90px; }
.doc h1 { font: 600 clamp(40px, 4.6vw, 56px)/1.1 var(--serif); }
.doc .intro { margin-top: 14px; font-size: 19px; color: var(--muted); }
.doc h2 { margin-top: 44px; font: 600 26px/1.25 var(--serif); }
.doc p, .doc li { margin-top: 14px; line-height: 1.6; }
.doc ul { padding-left: 22px; margin: 0; }
.doc a { color: var(--link); font-weight: 700; }

/* Narrow screens: no sticky phone, each chapter shows its own. */
@media (max-width: 959px) {
  .rail { display: none; }
  .phone--inline { display: block; }
  .chapter__body { min-height: 0; padding: 64px 0; max-width: none; }
  .hero .chapter__body { min-height: 0; padding-top: 12px; }
  .cards--options, .cards--facts { grid-template-columns: 1fr; }
  .final__phone { display: none; }
  .final__panel { padding: 44px 24px; }
}
@media (max-width: 759px) {
  .site-header .wrap { height: 76px; }
  .wordmark { font-size: 22px; }
  .menu-button { display: block; }
  .site-header .soon { display: none; }
  .nav { display: none; position: absolute; top: 70px; left: var(--gutter); right: var(--gutter); padding: 14px 22px; border-radius: 18px; background: var(--card); box-shadow: 0 16px 40px -14px rgba(74, 39, 52, .4); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; font-size: 18px; }
  .privacy, .faq { padding: 64px 0; }
  .faq__item { padding: 0 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 12px; }
  .voice { margin-left: 0; }
  .h2 br { display: none; }
  .spark { top: 28px; }
}

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