/* masht.ai coming soon (#914, D120): the v2a "Thought Balloon" world from
   DESIGN.md, with self-hosted OFL fonts and no third-party requests. */

@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-warm: #fff6da;
  --ink: #151412;
  --ink-2: #3e3a33;
  --sun: #eac361;
  --sun-deep: #d9a93a;
  --halftone: #c9922a;
  --pop: #ff4a1c;
  --action: #d93a0e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.55 Figtree, system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 14px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* The sun Ben-Day field behind the header and hero, closed by a 4px ink rule. */
.field {
  background: var(--sun) radial-gradient(var(--sun-deep) 1.5px, transparent 1.8px) 0 0 / 12px 12px;
  border-bottom: 4px solid var(--ink);
}

.header { height: 76px; display: flex; align-items: center; }
.wordmark {
  font: 900 32px/1 Figtree, system-ui, sans-serif;
  letter-spacing: -.05em;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: end;
  gap: 32px;
  min-height: min(calc(100svh - 76px), 900px);
  padding-bottom: 0;
}
.hero-copy { align-self: center; padding: 24px 0 64px; }

/* The thought balloon (DESIGN.md: the `cloud` path, 400:272). */
.balloon {
  position: relative;
  aspect-ratio: 400 / 272;
  max-width: 720px;
  animation: puff .8s var(--spring) .1s both;
  transform-origin: 78% 92%;
}
.balloon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.balloon .cast { fill: var(--ink); opacity: .35; }
.balloon .shade { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linejoin: round; }
.balloon .outline { fill: var(--paper); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.balloon .highlight { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.balloon-inside {
  position: absolute;
  inset: 26% 12% 20% 20%;
  display: flex;
  align-items: center;
  gap: 4%;
}
h1 {
  margin: 0;
  flex: 1;
  font: 400 clamp(2.4rem, 5.2vw, 4.9rem)/.95 "Lilita One", system-ui, sans-serif;
  letter-spacing: -.005em;
}
.pop { color: var(--pop); }
.dream {
  width: 28%;
  animation: pop .6s var(--spring) .65s both;
}

.lede { margin: 28px 0 0; max-width: 34ch; font: 600 21px/1.55 Figtree, system-ui, sans-serif; }
.soon {
  display: inline-block;
  margin: 22px 0 0;
  padding: 12px 22px;
  background: var(--paper);
  border: solid var(--ink);
  border-width: 4px 6px 6px 4px;
  border-radius: 999px;
  font-weight: 600;
}
.soon span { font-weight: 900; }

/* The result, standing on the hero's bottom edge. */
.wearer { position: relative; margin: 0; align-self: end; max-width: 440px; justify-self: center; width: 100%; }
.tee-panel {
  background: var(--paper);
  border: solid var(--ink);
  border-width: 4px 6px 0 4px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.tee-panel img { width: 100%; }
.label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .85);
  border-radius: 6px;
  font: 700 12px/1 Figtree, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trail { position: absolute; left: -96px; top: -64px; width: 120px; height: 70px; pointer-events: none; }
.trail span {
  position: absolute;
  border: solid var(--ink);
  border-width: 3px 5px 5px 3px;
  border-radius: 50%;
  background: var(--paper);
  animation: pop .4s var(--spring) both;
}
.trail span:nth-child(1) { left: 0; top: 0; width: 40px; height: 36px; animation-delay: .75s; }
.trail span:nth-child(2) { left: 50px; top: 30px; width: 26px; height: 24px; animation-delay: .9s; }
.trail span:nth-child(3) { left: 88px; top: 52px; width: 16px; height: 15px; animation-delay: 1.05s; }

/* Paper sections: privacy and footer. No ornament in legal or consent text. */
.paper { background: var(--paper); }
#privacy { padding: 96px 0 32px; }
.prose { max-width: 70ch; }
h2 {
  margin: 0 0 18px;
  font: 400 clamp(2.2rem, 4.4vw, 3.4rem)/.95 "Lilita One", system-ui, sans-serif;
}
.prose p { margin: 0 0 14px; }

.footer { padding: 64px 0 34px; }
.footer .contact { margin: 14px 0 0; color: var(--ink-2); }
.footer .legal {
  margin: 48px 0 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  color: var(--ink-2);
  font-size: 14px;
}

/* Buttons (DESIGN.md): pills with a 4px ink border. */
.btn, .link {
  font: 800 18px/1 Figtree, system-ui, sans-serif;
  color: var(--ink);
  cursor: pointer;
}
.btn {
  height: 52px;
  padding: 0 26px;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--paper-warm); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.link { padding: 0; background: none; border: 0; font-size: 18px; text-decoration: underline; text-underline-offset: 3px; }

/* Consent notice: plain and calm (no balloons in consent content). */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 560px;
  margin-inline: auto;
  padding: 20px 22px;
  background: var(--paper);
  border: solid var(--ink);
  border-width: 3px 5px 5px 3px;
  border-radius: 14px;
  box-shadow: 0 16px 26px -14px rgba(21, 20, 18, .55);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 10px; }
.consent-title { font-weight: 900; }
.consent-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 140px; }

@keyframes puff { from { transform: scale(.6) rotate(-3deg); opacity: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* One breakpoint, 880px (DESIGN.md). */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-copy { padding: 8px 0 24px; }
  .balloon { aspect-ratio: 400 / 250; margin-inline: -8px; }
  .dream { display: none; }
  h1 { font-size: clamp(2rem, 9.4vw, 3.2rem); }
  .lede { font-size: 19px; }
  .wearer { width: 78%; margin-top: 64px; }
  .trail { left: 8px; top: -60px; width: 90px; height: 56px; }
  .trail span:nth-child(1) { left: 0; top: 0; }
  .trail span:nth-child(2) { left: 44px; top: 22px; }
  .trail span:nth-child(3) { left: 74px; top: 40px; }
  #privacy { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
