/* Shared by all three pages. Deliberately plain: these are legal pages, readability beats brand. */
:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --muted: #666;
  --rule: #e3e3e3;
  --link: #6b3fd4;
  --bg: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #ececec; --muted: #9a9a9a; --rule: #333; --link: #b79cff; --bg: #111; }
}
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, ul, table { margin: 0 0 14px; }
li { margin-bottom: 6px; }
a { color: var(--link); }
.crumb, .meta, .foot { color: var(--muted); font-size: 0.9rem; }
.foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); font-weight: 600; }

/* ==========================================================================
   Landing page (index.html only). Everything below is scoped to body.home so
   the legal pages above are unaffected. Light-only, mobile-first.
   ========================================================================== */
:root:has(body.home) { color-scheme: light; background: #FBFAF7; }

.home {
  --ink: #1C1726;
  --soft: #5E576B;
  --paper: #FBFAF7;
  --lav: #A78BFA;
  --lav-deep: #7C5CE8;
  --lav-pale: #EDE7FF;
  --lav-mid: #DCD0FF;
  --line: #E7E2F2;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --hand: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive;
  --r: 22px;
  --shadow: 0 1px 2px rgba(28, 23, 38, 0.05), 0 12px 32px -14px rgba(60, 40, 120, 0.28);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
.home main { max-width: none; padding: 0; margin: 0; }
.home a { color: inherit; }
.home h1, .home h2, .home h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.home h1, .home h2 { line-height: 1.04; }
.home h1 em, .home h2 em { font-style: italic; color: var(--lav-deep); }
.home p { margin: 0; }
.home img { display: block; max-width: 100%; }

.shell { max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span { font-style: italic; color: var(--lav-deep); }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lav-deep);
  background: var(--lav-pale);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px !important;
}
.lede { color: var(--soft); font-size: 1.1rem; max-width: 34ch; }

.hand { font-family: var(--hand); color: var(--lav-deep); font-size: 1rem; line-height: 1.15; }
.doodle {
  overflow: visible;
  fill: none; stroke: var(--lav-deep); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- App Store badge ---------- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.64rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.store-badge--sm { font-size: 0.9rem; padding: 7px 14px 7px 11px; border-radius: 12px; gap: 7px; }
.store-badge--sm svg { width: 18px; height: 18px; }
.store-badge--sm small { font-size: 0.56rem; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.topbar__links { display: none; gap: 30px; font-size: 0.92rem; margin-left: auto; }
.topbar__links a { text-decoration: none; color: var(--soft); }
.topbar__links a:hover { color: var(--lav-deep); }

/* ---------- Hero ---------- */
.hero-wrap {
  padding-bottom: 56px;
  background:
    radial-gradient(55% 45% at 88% 10%, var(--lav-pale) 0%, transparent 70%),
    radial-gradient(45% 40% at 0% 55%, #F4EFFF 0%, transparent 70%);
}
.hero-grid { display: grid; gap: 44px; margin-top: 28px; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 { font-size: clamp(2.9rem, 12vw, 5rem); max-width: 10ch; }
.hero-copy .lede { margin: 20px auto 28px; }

/* Cards used in the hero and examples */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 5px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card__media { position: relative; border-radius: 11px; overflow: hidden; background: var(--lav-pale); }
.card__media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.card__cap { font-size: 0.62rem; font-weight: 600; margin: 6px 3px 3px; text-align: left; }
.card__lines { display: none; }
.card__heart {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; padding: 4px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--soft);
}
.ai-tag {
  position: absolute; top: 6px; right: 6px;
  min-width: 26px; height: 26px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--lav); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

/* Hero: outfit + you = result */
.flow {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.3fr);
  align-items: center;
  gap: 6px;
  text-align: left;
}
.card--tilt-l { transform: rotate(-4deg); }
.card--result { padding: 5px; box-shadow: 0 2px 4px rgba(28, 23, 38, 0.06), 0 24px 48px -18px rgba(124, 92, 232, 0.55); }
.flow__op {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lav); color: #fff;
  font-size: 1rem; font-weight: 600; line-height: 1;
}
.flow__notes { display: contents; }
.flow__notes .hand { display: flex; align-items: center; gap: 2px; font-size: 0.85rem; white-space: nowrap; }
.flow__notes .doodle { width: 22px; height: 22px; flex: none; }
.n1 { grid-column: 1; justify-content: center; }
.n2 { grid-column: 3; justify-content: center; }
.n3 { grid-column: 5; justify-content: center; }
.doodle--loop { display: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(2.1rem, 8vw, 3.4rem); max-width: 16ch; }
.section--tint { background: var(--lav-pale); border-radius: 32px; margin: 0 10px; }
.section--tint .eyebrow { background: #fff; }

/* How it works */
.doodle--spark { position: absolute; right: 24px; top: -4px; width: 30px; height: 30px; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.step {
  margin: 0;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(28, 23, 38, 0.04);
}
.step__num {
  position: absolute; top: 16px; right: 22px;
  font-family: var(--serif); font-style: italic; font-size: 1.8rem;
  color: var(--lav);
}
.step__icon {
  display: block; width: 52px; height: 52px; padding: 11px; margin-bottom: 18px;
  border-radius: 14px; background: var(--lav-pale);
  fill: none; stroke: var(--lav-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.step h3 { font-size: 1.22rem; line-height: 1.25; padding-right: 24px; }
.step p { color: var(--soft); font-size: 0.95rem; margin-top: 10px; }

/* Examples */
.examples__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav[hidden] { display: none; }
.carousel-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}
.carousel-nav button:hover { color: var(--lav-deep); }
.examples {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 16px;
  margin: 32px -20px 0;
  padding: 4px 20px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}
.examples::-webkit-scrollbar { display: none; }
.example { margin: 0; scroll-snap-align: start; min-width: 0; }
.example__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card--flat { box-shadow: 0 1px 2px rgba(28, 23, 38, 0.05), 0 8px 20px -14px rgba(60, 40, 120, 0.3); }
.card--photo { display: flex; }
.card--photo .card__media { flex: 1; }
.card--photo .card__media img { height: 100%; aspect-ratio: auto; }
.example figcaption {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px; text-align: center;
  font-size: 0.78rem; font-weight: 600;
}
.example figcaption span { justify-self: center; padding: 5px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: var(--soft); }
.example figcaption .on { background: var(--lav-mid); color: var(--lav-deep); }

/* Final CTA */
.cta { padding: 72px 0 64px; text-align: center; overflow-x: clip; }
.cta__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.cta h2 { flex-basis: 100%; margin: 0 auto; font-size: clamp(2.5rem, 10vw, 4.4rem); max-width: 12ch; }
.cta h2 em { display: block; }
.cta .lede { flex-basis: 100%; margin: 18px auto 28px; max-width: none; }
.polaroid {
  position: relative;
  order: -1;
  width: 118px;
  margin: 0 12px 36px;
  background: #fff;
  padding: 7px 7px 22px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.polaroid--l { transform: rotate(-6deg); }
.polaroid--r { transform: rotate(5deg); margin-top: 14px; }
.polaroid--r::before {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 54px; height: 20px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(167, 139, 250, 0.45); border-radius: 2px;
}
.polaroid .hand { display: none; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); }
.site-foot .shell { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.95rem; }
.site-foot nav a { text-decoration: none; color: var(--soft); }
.site-foot nav a:hover, .site-foot__mail a:hover { color: var(--lav-deep); }
.site-foot__mail { font-size: 0.88rem; color: var(--soft); }
.site-foot__mail a { color: var(--soft); }

.home a:focus-visible, .home button:focus-visible { outline: 2px solid var(--lav-deep); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .card--result { animation: ff-rise 0.7s 0.15s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes ff-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .card { padding: 8px; border-radius: 20px; }
  .card__media { border-radius: 14px; }
  .card__cap { font-size: 0.78rem; margin: 10px 4px 6px; }
  .card__lines { display: block; height: 7px; width: 78%; margin: 0 4px 6px; border-radius: 4px; background: #EEEAF4; }
  .card__lines::after { content: ""; display: block; width: 60%; height: 7px; margin-top: 12px; border-radius: 4px; background: #F3F0F8; }
  .card__heart { top: 10px; right: 10px; width: 28px; height: 28px; padding: 6px; }
  .ai-tag { top: 10px; right: 10px; min-width: 32px; height: 32px; font-size: 0.78rem; }
  .flow { gap: 12px; }
  .flow__op { width: 34px; height: 34px; font-size: 1.3rem; }
  .flow__notes .hand { font-size: 1.15rem; }
  .flow__notes .doodle { width: 28px; height: 28px; }
  .doodle--loop { display: block; position: absolute; left: 12%; top: -46px; width: 120px; height: 50px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .examples { grid-auto-columns: 46%; }
  .card--flat { padding: 6px; }
}
@media (min-width: 760px) {
  .topbar__links { display: flex; }
}
@media (min-width: 960px) {
  .shell { padding: 0 40px; }
  .topbar { padding-top: 22px; padding-bottom: 22px; }
  .hero-wrap { padding-bottom: 96px; }
  .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 56px;
    margin-top: 56px;
    text-align: left;
  }
  .hero-copy { align-items: flex-start; }
  .hero-copy .lede { margin-left: 0; font-size: 1.22rem; }
  .flow { margin-top: 30px; }
  .section { padding: 104px 0; }
  .section h2 { max-width: 20ch; }
  .section--tint { margin: 0 24px; border-radius: 44px; }
  .examples {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 40px 0 0;
    padding: 0;
    overflow: visible;
    gap: 28px;
  }
  .cta { padding: 128px 0 104px; }
  .cta__inner { display: block; }
  .polaroid { position: absolute; margin: 0; width: 180px; padding: 9px 9px 30px; }
  .polaroid--l { left: 60px; top: -10px; }
  .polaroid--r { right: 60px; top: 10px; }
  .polaroid .hand { display: block; position: absolute; font-size: 1.15rem; text-align: left; }
  .polaroid--l .hand { left: -48px; bottom: -46px; transform: rotate(-8deg); }
  .polaroid--r .hand { right: -96px; top: 70px; transform: rotate(-5deg); }
  .site-foot .shell { flex-direction: row; justify-content: space-between; }
  .site-foot__mail { order: 3; }
}
@media (min-width: 1200px) {
  .polaroid--l { left: 20px; }
  .polaroid--r { right: 20px; }
}
