/* Tulip early-access page. Brochure fonts and motifs on a white page with ink
   outlines and a deep-berry accent (Ottawa Gen Z campaign, D-029). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --fg: #1a1220;          /* ink: near-black plum */
  --muted: #5e5563;
  --rose: #a3195b;        /* deep berry accent (7:1 on white) */
  --rose-press: #85124a;
  --rose-ink: #a3195b;
  --on-rose: #ffffff;
  --chip: #f6f2f7;        /* faint lilac-grey wash */
  --line: #1a1220;        /* borders are ink */
  --field: #ffffff;
  --shadow: rgba(26, 18, 32, 0.16);
  --bad: #b42318;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--rose-ink); outline-offset: 3px; border-radius: 8px; }
em { white-space: nowrap; font-family: var(--display); font-style: italic; font-weight: 400; color: var(--rose); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 100px;
}
.skip:focus { top: 12px; }

/* Background film behind the hero: faded through a white veil so the text stays crisp. */
.backdrop {
  position: absolute; inset: 0 0 auto 0; height: min(100svh, 1000px); z-index: -1; overflow: hidden;
  pointer-events: none;
}
.backdrop video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.72; filter: saturate(1.15);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.14) 40%, rgba(255,255,255,0.66) 82%, #fff 100%);
}
body { position: relative; z-index: 0; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.wordmark { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.wordmark.small { font-size: 22px; }
.tulip {
  display: inline-block; width: 0.78em; height: 0.78em; margin-left: 2px; vertical-align: 0.3em;
  fill: var(--rose); color: var(--rose); transform-origin: 50% 100%;
  animation: sway 3.2s ease-in-out infinite;
}
/* A gentle sway, like a tulip in a breeze. */
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  60% { transform: rotate(5deg); }
}}
.chip {
  font-size: 13px; font-weight: 700; color: var(--fg); background: var(--card); border: 1.5px solid var(--line);
  padding: 7px 14px; border-radius: 100px;
}
.chip { display: inline-flex; align-items: center; gap: 7px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--rose);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.6); opacity: 0; } }
.demo-banner {
  margin: 8px var(--gutter) 0; padding: 10px 14px; border-radius: 14px;
  background: var(--chip); color: var(--fg); font-size: 14px; text-align: center;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start; padding-top: clamp(28px, 6vw, 72px); padding-bottom: 56px;
}
h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(44px, 7vw, 84px);
  line-height: 1; letter-spacing: -0.035em; font-variation-settings: "opsz" 144;
}
h1 em { display: inline-block; }
.lede { margin-top: 18px; font-size: clamp(19px, 2.2vw, 23px); font-weight: 500; }
.spark { color: var(--rose); }

/* Hero motif: a ring with three fanned portrait cards */
.stage { position: relative; height: 250px; margin: 30px 0 8px; max-width: 460px; }
.ring {
  position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; translate: -50% -50%;
  border-radius: 50%; border: 1.5px solid var(--fg); opacity: 0.8;
  box-shadow: 0 0 0 22px var(--chip);
}
.card {
  position: absolute; top: 50%; left: 50%; width: 128px; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px; border: 4px solid var(--card); box-shadow: 0 18px 40px var(--shadow);
  translate: -50% -50%;
  animation: fan 1.1s var(--ease) both;
}
.c1 { --r: -12deg; --x: -90px; animation-delay: 0.1s; }
.c2 { --r: 0deg; --x: 0px; z-index: 2; width: 144px; animation-delay: 0.2s; }
.c3 { --r: 12deg; --x: 90px; animation-delay: 0.3s; }
.c1, .c2, .c3 { transform: translateX(var(--x)) rotate(var(--r)); }
@keyframes fan {
  from { transform: translateX(0) rotate(0); opacity: 0; }
  to { transform: translateX(var(--x)) rotate(var(--r)); opacity: 1; }
}

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  background: var(--card); border: 1.5px solid var(--line); padding: 7px 14px; border-radius: 100px;
}
.tick { color: var(--rose-ink); font-weight: 800; }

/* Form panel */
.panel {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 30px;
  padding: clamp(24px, 4vw, 44px); box-shadow: 6px 6px 0 var(--fg);
  /* Frosted glass: the background film shows softly through. */
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  position: sticky; top: 20px;
}
.card-form h2, .success h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3vw, 38px); letter-spacing: -0.02em; line-height: 1.12;
}
.perk {
  display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 12px;
  background: var(--chip); border: 1.5px dashed var(--rose); font-size: 15px; font-weight: 500;
}
.perk strong { color: var(--rose-ink); }
.perk .spark { margin-right: 4px; }
.hint-top { color: var(--muted); margin: 10px 0 20px; font-size: 15px; }

.field { margin-bottom: 14px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; height: 54px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--fg);
  background: rgba(255, 255, 255, 0.88); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--muted); opacity: 0.6; }
input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(163, 25, 91, 0.16); }
input[aria-invalid="true"] { border-color: var(--bad); }
.affix { position: relative; }
.affix .prefix {
  position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-weight: 600;
  pointer-events: none;
}
.affix input { padding-left: 40px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.err { font-size: 14px; color: var(--bad); margin-top: 6px; font-weight: 600; }
.err:empty { display: none; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 6px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--rose); }
.check label { font-weight: 400; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.check .err { grid-column: 2; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  background: var(--chip); border-left: 4px solid var(--bad); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 16px; font-size: 15px; font-weight: 600;
}

/* Ink button with a berry offset shadow; hover turns berry. */
.btn {
  width: 100%; height: 56px; margin-top: 8px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--fg); color: #ffffff; font: 700 19px var(--body); letter-spacing: 0.01em;
  box-shadow: 4px 4px 0 var(--rose);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--rose-press); }
.btn:active { transform: scale(0.985); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.privacy { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; text-align: center; }
.privacy a { color: var(--rose-ink); }

/* Success: the brochure's aperture reveal */
.success { text-align: center; padding: 10px 0; }
.success:focus { outline: none; }
.aperture {
  width: 168px; height: 168px; margin: 4px auto 22px; border-radius: 50%; overflow: hidden;
  background: var(--chip); box-shadow: 0 0 0 10px var(--card), 0 0 0 11.5px var(--fg);
}
.aperture img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: circle(80% at 50% 45%);
  animation: aperture 0.9s var(--ease) both;
}
@keyframes aperture {
  0% { clip-path: circle(0% at 50% 45%); }
  45% { clip-path: circle(34% at 50% 45%); }
  100% { clip-path: circle(80% at 50% 45%); }
}
.success p { margin-top: 12px; font-size: 18px; font-weight: 500; }
.success .small { font-size: 15px; font-weight: 400; color: var(--muted); }

/* What Tulip is, in one line */
.what { margin-top: 10px; max-width: 30em; font-size: 16px; color: var(--muted); }

/* Them vs Tulip */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vs { padding-top: 16px; padding-bottom: 48px; }
.vs h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1;
}
.vs-quote { margin-top: 10px; font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }
.vs-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vs-list li {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px 20px;
  box-shadow: 4px 4px 0 var(--fg);
}
.old {
  color: var(--muted); font-size: 15px;
  text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px;
}
.arrow { color: var(--rose); font-weight: 800; font-size: 20px; }
.new { font-weight: 700; font-size: 17px; }

/* Our promise: an ink band, the one dark moment on the page */
.promise-wrap { padding-bottom: 56px; }
.promise {
  position: relative; overflow: hidden;
  background: var(--fg); color: #ffffff; border-radius: 32px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 72px);
  box-shadow: 6px 6px 0 var(--rose);
}
.promise::before, .promise::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255, 143, 192, 0.35);
}
.promise::before { width: 340px; height: 340px; right: -110px; top: -120px; }
.promise::after { width: 220px; height: 220px; right: -50px; top: -60px; border-color: rgba(255, 255, 255, 0.12); }
.promise > * { position: relative; }
.promise em { color: #ff8fc0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #ff8fc0; }
.promise h2 {
  margin-top: 10px; font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.03em;
}
.mono { margin-top: 28px; max-width: 34em; display: grid; gap: 10px; }
.mono p { font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; letter-spacing: -0.01em; }
.mono .soft { font-style: italic; color: #cfc4d6; }
.tags-label { margin-top: 32px; font-size: 14px; font-weight: 600; color: #cfc4d6; }
.tags { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.tags li::before { content: "✦"; color: #ff8fc0; margin-right: 8px; }
.closer {
  margin-top: 36px; font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15; letter-spacing: -0.02em;
}
.cta {
  display: inline-block; margin-top: 24px; padding: 15px 26px; border-radius: 100px;
  background: #ffffff; color: var(--fg); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 4px 4px 0 var(--rose); transition: transform 0.15s;
}
.cta:hover { transform: translate(-1px, -1px); }
.cta:focus-visible { outline-color: #ff8fc0; }

/* Your peace, protected */
.peace { padding-bottom: 56px; }
.peace h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.1;
}
.peace-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.peace-list li {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 22px;
  box-shadow: 4px 4px 0 var(--fg);
}
.ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--chip); color: var(--rose); font-size: 20px; border: 1.5px solid var(--line);
}
.peace-list h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.25; }
.peace-list p { color: var(--muted); font-size: 15px; }

/* How it works */
.how { padding-top: 24px; padding-bottom: 48px; }
.how h2 {
  font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em;
}
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 4px 4px 0 var(--fg); }
.num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg); color: #ffffff; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

.terms {
  padding-top: 24px; padding-bottom: 72px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.terms p {
  max-width: 34em; font-family: var(--display); font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.6; color: #3a3140; font-weight: 350; font-variation-settings: "opsz" 24;
}
.terms p + p { margin-top: 18px; }
.terms .last {
  max-width: 13em; margin-top: 36px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--fg); font-variation-settings: "opsz" 144;
}
.terms .last strong { font-weight: 500; }
.terms .wordmark.sign { margin-top: 40px; font-size: 34px; line-height: 1; color: var(--fg); font-weight: 600; font-variation-settings: normal; }
.terms .wordmark.sign + .last { margin-top: 18px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; font-size: 14px;
}
.foot-mail { margin-left: auto; color: var(--rose-ink); }
.muted { color: var(--muted); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .panel { position: static; }
  .stage { height: 210px; margin: 24px auto 6px; }
  .ring { width: 190px; height: 190px; }
  .card { width: 104px; }
  .c1 { --x: -74px; }
  .c3 { --x: 74px; }
  .c2 { width: 118px; }
  .ticks { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .vs-list { grid-template-columns: 1fr; }
  .peace-list { grid-template-columns: 1fr 1fr; }
  .what { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .vs-list li { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .vs-list .arrow { display: none; }
  .promise { border-radius: 24px; }
  .promise::before { width: 220px; height: 220px; right: -90px; top: -90px; }
  .promise::after { display: none; }
  .tags li { font-size: 14px; padding: 7px 13px; }
  .cta { display: block; text-align: center; }
  .peace-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .chip { font-size: 12px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
