/* izuke.app — landing page with the waitlist built in.
 * Built from the Figma "Izuke landing page" frames: Desktop — 1440 and
 * Mobile — 390. Light only, as designed. */

:root {
  --bg: #F7F5F2;
  --ink: #000000;
  --text: #111111;
  --muted: #5C5C5C;
  --berry: #B11744;
  --berry-soft: #CB5E7C;   /* "Joining…" — the sending state */
  --success-bg: #F8E8ED;
  --error: #C43A1E;
  --line: #D3D3D3;
  --radius-card: 24px;
  --radius-ctrl: 10px;
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
/* `hidden` must win over the display rules below (the success note is
   display:flex, which otherwise shows it before anyone has signed up). */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 30px;
  border: 0; border-radius: var(--radius-ctrl);
  font: 600 16px/1 'Inter', sans-serif;
  color: #fff; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, opacity .15s;
}
.btn-berry { background: var(--berry); }
.btn-berry:hover { background: #9C143C; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #222; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; gap: 36px;
  height: 96px;
}
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo img { width: 40px; height: auto; filter: brightness(0); } /* black mark, as designed; the file is berry */
.logo span { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 36px; margin-left: auto; font-size: 15px; }
.nav-links a:hover { color: var(--berry); }
.nav-cta { height: 40px; padding: 0 18px; font-size: 15px; font-weight: 500; }
.nav-cta .short { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; align-items: flex-end;   /* copy sits low, as designed */
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* Darkens the left, where the copy sits, and leaves the runners clear. */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.hero-copy { position: relative; padding: 56px; max-width: 700px; color: #fff; }
.hero h1 {
  font-size: 56px; line-height: 1.0; font-weight: 700; letter-spacing: -0.035em;
}
.lede { margin-top: 26px; max-width: 490px; font-size: 17px; line-height: 1.55; }
.hero .signup { margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 14px; }
.store-badges { display: flex; gap: 10px; margin-top: 18px; }
.store-badges img { height: 40px; width: auto; }

/* ── Signup form (hero and banner) ────────────────────────────────────── */
.signup-form {
  display: grid;
  grid-template-columns: minmax(0, 352px) auto;
  gap: 8px;
  align-items: start;
}
.signup-email {
  height: 54px; width: 100%;
  padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-ctrl);
  background: #fff; color: var(--text);
  font: 400 16px 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s;
}
.signup-email::placeholder { color: #6F6F6F; }
.signup-email:focus { border-color: var(--ink); }
.signup-form.has-error .signup-email { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.signup-error {
  grid-column: 1 / -1;
  font-size: 14px; color: var(--error);
  min-height: 0;
}
.signup-error:empty { display: none; }
.hero .signup-error { color: #FFD5CC; }
.banner .signup-error { color: #fff; }
.signup-btn[disabled] { background: var(--berry-soft); cursor: default; }
.btn-ink.signup-btn[disabled] { background: #444; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Turnstile only shows itself when it needs the visitor to do something. */
.captcha { grid-column: 1 / -1; }
.captcha:empty { display: none; }

.signup-success {
  display: flex; flex-direction: column; gap: 2px;
  max-width: 540px;
  padding: 20px 20px;
  border-radius: var(--radius-ctrl);
  background: var(--success-bg);
  color: var(--text);
}
.signup-success strong { font-size: 16px; font-weight: 600; }
.signup-success span { font-size: 14px; color: var(--muted); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-top: 104px; }
.eyebrow { color: var(--berry); font-size: 15px; font-weight: 500; }
.h2 {
  margin-top: 14px;
  font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em;
}
.how-title { max-width: 620px; }
.why-title { max-width: 560px; }
.sub { margin-top: 18px; max-width: 620px; font-size: 17px; color: var(--muted); }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 44px;
}
.steps li { border-top: 1px solid var(--ink); padding-top: 26px; }
.step-num { color: var(--berry); font-size: 15px; font-weight: 500; }
.steps h3 { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin-top: 12px; font-size: 15.5px; color: var(--muted); max-width: 300px; }

/* Why Izuke */
.why-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 46px;
}
.why-cards img {
  width: 100%; aspect-ratio: 265 / 300; object-fit: cover;
  border-radius: 16px; background: #E6E2DC;
}
.why-cards h3 { margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.why-cards p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Our story */
.story { padding-top: 112px; }
.story-inner { width: min(900px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.story-photo {
  width: 128px; height: 128px; margin-inline: auto;
  border-radius: 16px; object-fit: cover;
}
.story-quote {
  margin-top: 46px; text-align: center;
  font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em;
}
.story-body { margin-top: 36px; }
.story-body p { font-size: 16.5px; color: var(--muted); }
.story-body p + p { margin-top: 14px; }
.story-close { color: var(--text) !important; font-weight: 600; font-size: 17px !important; }
.story-sig { margin-top: 36px !important; display: flex; flex-direction: column; }
.story-sig strong { color: var(--text); font-weight: 600; font-size: 16px; }
.story-sig span { font-size: 14.5px; }

/* FAQs */
.faq { padding-top: 112px; }
.faq-title {
  text-align: center;
  font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.035em;
}
.faq-list {
  width: min(860px, 100% - 2 * var(--gutter)); margin: 56px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}
.faq details {
  background: #fff; border: 1px solid #ECE8E3; border-radius: 16px;
  transition: border-color .15s;
}
.faq details[open] { border-color: #F7D4DF; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus on a soft berry dot when closed; minus on solid berry when open. */
.faq summary::after {
  content: '+'; flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--success-bg); color: var(--berry);
  font-size: 20px; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: '−'; background: var(--berry); color: #fff; }
.faq details p {
  padding: 0 28px 24px; margin-top: -6px;
  max-width: 740px; font-size: 16px; color: var(--muted);
}

/* Closing banner */
.banner {
  margin-top: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 12px 36px 48px;
  border-radius: 28px;
  background: var(--berry); color: #fff;
}
.banner h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.banner p { margin-top: 4px; font-size: 17px; color: rgba(255,255,255,.88); }
.banner .signup { flex: 0 1 540px; }
.banner .signup-success { background: #fff; }

/* Footer */
.footer {
  display: flex; align-items: center; gap: 28px;
  padding: 52px 0 60px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.social { display: inline-flex; color: var(--text); }
.social:hover { color: var(--berry); }
.footer .logo img { width: 34px; }
.footer .logo span { font-size: 18px; }
.footer-links { display: flex; gap: 29px; margin-left: auto; font-size: 14px; }
.footer-links a:hover { color: var(--berry); }
.copyright { font-size: 14px; color: #7A7A7A; }

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .nav-links { gap: 24px; }
  .why-cards { grid-template-columns: repeat(2, 1fr); }
  .banner { flex-direction: column; align-items: stretch; padding: 36px; }
  .banner .signup { flex: none; }
  .footer { flex-wrap: wrap; }
  .footer-links { margin-left: 0; flex-wrap: wrap; order: 2; width: 100%; }
  .copyright { order: 3; }
}

/* ── Phone (the 390 frame) ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { height: 80px; gap: 16px; }
  .nav-links { display: none; }
  .nav .nav-cta { margin-left: auto; height: 35px; padding: 0 14px; width: auto; }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }

  /* Photo on top, copy below it in dark text, as the mobile frame has it. */
  .hero { display: block; min-height: 0; border-radius: 0; overflow: visible; }
  .hero-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 350 / 300; }
  .hero-media::after { display: none; }
  .hero-copy { padding: 30px 0 0; color: var(--text); max-width: none; }
  .hero h1 { font-size: 40px; line-height: 1.05; }
  .lede { margin-top: 20px; font-size: 16.5px; color: var(--muted); }
  .hero-note { color: var(--muted); font-size: 13px; }
  .hero .signup-error { color: var(--error); }

  .signup-form { grid-template-columns: 1fr; }
  .signup-email { height: 52px; border-color: var(--line); }
  .btn { height: 52px; width: 100%; }

  .section { padding-top: 88px; }
  .h2 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .steps li { padding: 26px 0 30px; }
  .steps p { max-width: none; }

  /* A swipeable row that bleeds off the right edge. */
  .why-cards {
    display: flex; gap: 12px;
    width: 100%; padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-top: 28px;
  }
  .why-cards::-webkit-scrollbar { display: none; }
  .why-cards li { flex: 0 0 260px; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .why-cards img { aspect-ratio: 260 / 222; }

  .store-badges img { height: 38px; }

  .faq { padding-top: 88px; }
  .faq-title { font-size: 40px; }
  .faq-list { width: 100%; margin-top: 36px; }
  .faq summary { padding: 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; font-size: 15.5px; }

  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }

  .story { padding-top: 96px; }
  .story-photo { width: 104px; height: 104px; }
  .story-quote { margin-top: 32px; font-size: 26px; }
  .story-body { margin-top: 28px; }
  .story-body p { font-size: 16px; }

  .banner { margin-top: 64px; padding: 32px 20px; border-radius: 24px; }
  .banner h2 { font-size: 24px; }
  .banner p { margin-top: 12px; font-size: 16px; }
  .banner .signup { margin-top: 4px; }
  .banner .signup-email { border-color: transparent; }

  .footer { padding: 44px 0 40px; gap: 18px; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px 20px; font-size: 15px; }
  .copyright { font-size: 13px; }
}
