/* Lookit — lookit-app.com
   Brand tokens from frontend/lib/core/theme/app_theme.dart */
:root {
  --ink: #15131A;
  --paper: #F7F6F3;
  --blush: #F6DDE4;
  --raspberry: #E8336B;
  --deep: #C21F55;        /* accent for text: 5.4:1 on paper */
  --hairline: #E4E1DC;
  --mid: #59545F;         /* 7:1 on paper */
  --on-ink-mid: #C9C4CE;  /* 10:1 on ink */
  --white: #FFFFFF;

  --display: "Bricolage Grotesque", "Rubik", system-ui, sans-serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible { outline-color: var(--raspberry); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); margin: 0; font-optical-sizing: auto; }
:lang(en) h2, :lang(en) h3 { letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.02; font-weight: 750; font-stretch: 88%; }
h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 650; }
p { margin: 0; }

/* ---------- top bar ---------- */
.topbar { background: var(--blush); }
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.lang-switch {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}
.lang-switch:hover { background: var(--ink); color: var(--white); }

/* ---------- cover (hero) ---------- */
.cover { background: var(--blush); overflow: hidden; }
.cover-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "mast" "text" "lines" "phone";
  padding-block-start: clamp(0.5rem, 2vw, 1.5rem);
}

.masthead {
  grid-area: mast;
  position: relative;
  z-index: 0;
  direction: ltr;
  text-align: center;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(5rem, min(47vw, 46vh), 30rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin-inline: -0.04em;
  padding-block: 0 0.04em;
  white-space: nowrap;
}
.masthead .dot { color: var(--raspberry); }

.cover-text { grid-area: text; padding-block: clamp(1.75rem, 4vw, 2.5rem) 0; }
.promise {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  max-width: 17ch;
  text-wrap: balance;
}
:lang(en) .promise { letter-spacing: -0.02em; font-stretch: 90%; }
.lede { margin-block-start: 1rem; max-width: 40ch; color: var(--ink); font-size: 1.125rem; }

.soon {
  display: inline-block;
  margin-block-start: 1.75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 1.6rem;
  padding: 0.7rem 1.25rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}
.soon::before {
  content: "";
  display: inline-block;
  width: 0.55rem; height: 0.55rem;
  margin-inline-end: 0.55rem;
  vertical-align: 0.08em;
  border-radius: 50%;
  background: var(--raspberry);
}
.platforms { margin-block-start: 0.6rem; color: var(--mid); font-size: 0.95rem; }

.coverlines {
  grid-area: lines;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.coverlines li { border-block-start: 3px solid var(--ink); padding-block-start: 0.7rem; }
.coverlines strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
}
.coverlines span { display: block; margin-block-start: 0.25rem; color: var(--mid); font-size: 0.98rem; line-height: 1.5; }

.cover-phone {
  grid-area: phone;
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: end;
  width: min(78vw, 330px);
  margin-block-start: 2.5rem;
  filter: drop-shadow(0 30px 40px rgba(21, 19, 26, 0.18));
}
.cover-phone img { width: 100%; }

@media (min-width: 640px) and (max-width: 959.98px) {
  .coverlines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .cover-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 340px) minmax(0, 0.85fr);
    grid-template-areas:
      "mast mast mast"
      "text phone lines";
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .cover-phone { width: 100%; margin-block-start: clamp(-14rem, -13vw, -7rem); }
  .cover-text, .coverlines { padding-block-end: 4.5rem; }
  .coverlines { margin-block-start: 0; padding-block-start: clamp(1.75rem, 4vw, 2.5rem); align-content: start; }
}

/* the one orchestrated moment: the cover phone rises in front of the masthead */
@media (prefers-reduced-motion: no-preference) {
  .cover-phone { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
  @keyframes rise {
    from { transform: translateY(60px); }
    to { transform: none; }
  }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 34rem; }
.section-head p { margin-block-start: 1rem; color: var(--mid); font-size: 1.125rem; }

/* how it works */
.steps {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: step;
}
.steps li { border-block-start: 1px solid var(--ink); padding-block-start: 1rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 0.9;
  color: var(--deep);
  margin-block-end: 1rem;
}
.steps p { margin-block-start: 0.6rem; color: var(--mid); max-width: 36ch; }

/* inside the app */
.inside { background: var(--ink); color: var(--white); }
.inside .section-head p { color: var(--on-ink-mid); }
.shots {
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 300px);
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block-end: 1rem;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--mid) transparent;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 16px; background: var(--paper); }
.shots figcaption { margin-block-start: 0.85rem; color: var(--on-ink-mid); font-size: 0.98rem; }
.shots figcaption strong { color: var(--white); font-weight: 500; display: block; }
@media (min-width: 1000px) {
  .shots { justify-content: start; overflow: visible; }
  .shots figure:nth-child(2) { margin-block-start: 4rem; }
}

/* why it's free */
.free-grid { display: grid; gap: 2.5rem; }
.free-list { margin: 0; }
.free-list div { border-block-start: 1px solid var(--hairline); padding-block: 1.25rem; display: grid; gap: 0.35rem; }
.free-list div:last-child { border-block-end: 1px solid var(--hairline); }
.free-list dt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.free-list dd { margin: 0; color: var(--mid); max-width: 60ch; }
@media (min-width: 900px) {
  .free-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .free-list div { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
}

/* FAQ */
.faq { border-block-start: 1px solid var(--hairline); }
.faq-list { margin-block-start: clamp(2rem, 4vw, 3rem); max-width: 50rem; }
.faq details { border-block-end: 1px solid var(--hairline); }
.faq details:first-child { border-block-start: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--text);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--deep);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block-end: 1.25rem; color: var(--mid); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* footer */
.site-footer { background: var(--ink); color: var(--white); padding-block: 3.5rem 2.5rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.footer-brand svg { width: 44px; height: 44px; border-radius: 11px; }
.footer-grid h2 { font-family: var(--text); font-size: 0.95rem; font-weight: 500; color: var(--on-ink-mid); margin-block-end: 0.6rem; letter-spacing: 0; font-stretch: 100%; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-bottom { margin-block-start: 3rem; padding-block-start: 1.5rem; border-block-start: 1px solid #36323D; color: var(--on-ink-mid); font-size: 0.95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }
.notfound .masthead { grid-area: auto; text-align: end; font-size: clamp(6rem, 30vw, 16rem); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.notfound .en-line { justify-self: end; color: var(--mid); }
