/* ===== Fonts ===== */
/* Orpheus Pro is served by Adobe Fonts (her web project "Eriduo website", kit gww6zbm),
   loaded with a <link> in each page. Family name there: "orpheuspro". */
/* Google Sans (SIL Open Font License) – Hebrew + English, subset to woff2, kerning kept */
@font-face { font-family: "Google Sans"; src: url("../fonts/GoogleSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/GoogleSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/GoogleSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("../fonts/GoogleSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --teal-light: #d1e3e2;   /* landing hero + footer */
  --teal: #afc3c1;         /* quiz header bar */
  --cream: #f1efe8;        /* page background (her spec F1EFE8) */
  --sage: #5f776f;         /* Send / button hover fill – her #8ea59d darkened for 4.5:1 contrast */
  --ink: #2b2b2b;          /* headings */
  --text: #5c5c5c;         /* body copy */
  --text-soft: #8a8a8a;
  --rule: #a9a9a9;
  --frame: #c2c2c2;

  --serif-italic: "orpheuspro", "Cormorant Garamond", Georgia, serif;
  --serif-caps: "orpheuspro", "Cormorant Garamond", Georgia, serif;
  --hebrew: "Google Sans", "Assistant", Arial, sans-serif;
  --latin-sans: "Google Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--hebrew);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;        /* always use the font's own kerning */
  letter-spacing: 0;           /* Figma default; per-element values below where set */
  min-width: 1100px; /* desktop-only mockup for now */
}

a { color: inherit; }

.logo {
  display: block;
  aspect-ratio: 264 / 360;
  background-color: currentColor;
  -webkit-mask: url("../images/logo.png") center / contain no-repeat;
  mask: url("../images/logo.png") center / contain no-repeat;
}

/* Outline button used for "Let's Begin" / "Send" */
.btn-outline {
  display: inline-block;
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 26px;
  color: var(--text);
  background: transparent;
  border: 1.5px solid #6b6b6b;
  padding: 12px 52px;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-outline:active { background: var(--sage); border-color: var(--sage); color: #fff; }
@media (hover: hover) { .btn-outline:hover { background: var(--sage); border-color: var(--sage); color: #fff; } }

/* =================================================================
   LANDING PAGE
   ================================================================= */
.hero {
  position: relative;
  /* crop is sized so a 1440x660 hero matches the design exactly */
  background: #6b6964 url("../images/photos/hero-desktop.jpg") left center / cover no-repeat;
  height: 660px;
}
.hero::before { /* slight darkening so the white text reads well */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .17);
}
.hero > * { position: relative; }
.hero .logo {
  position: absolute;
  top: 66px;
  left: 58px;
  width: 52px;
  color: #fff;
}
.hero-text {
  position: absolute;
  top: 245px;
  left: 19.6%;
}
.hero h1 {
  font-family: var(--serif-caps);
  font-weight: 400;
  font-size: 54px;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1;
}
.hero .tagline {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 34px;
  color: #fff;
  margin-top: 26px;
}
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.container {
  width: 62%;
  max-width: 900px;
  margin: 0 auto;
}

.intro {
  text-align: center;
  font-weight: 400;
  font-size: 20px;
  line-height: 27px;
  color: var(--text);
  padding: 58px 0 70px;
}

.section { margin-bottom: 120px; }
.section-title {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 46px;
  color: #4a4a4a;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.split {
  display: flex;
  gap: 6%;
  align-items: flex-start;
}
.split.reverse { flex-direction: row-reverse; }

.img-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  flex: 0 0 46%;
  aspect-ratio: 427 / 525;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa7a5;
  font-family: var(--latin-sans);
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.split-text {
  flex: 1;
  direction: rtl;
  text-align: right;
  padding-top: 25px;
}
.split.reverse .split-text { padding-top: 25px; }
.split-text .lead {
  font-weight: 600;
  font-size: 20px;
  line-height: 25px;
  color: #4a4a4a;
  margin-bottom: 26px;
}
.split-text p {
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
/* section 2: a blank line between paragraphs (as in her design) */
.split.reverse .split-text p { margin-bottom: 23px; }

.split-text em {
  line-height: 0; /* Adobe's Orpheus has a taller line box; keep the paragraph's line spacing */
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.05em;
}

/* How it works */
.how .section-title { margin-bottom: 26px; }
.steps { list-style: none; direction: rtl; margin-right: -14px; }
.step {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 46px;
}
.step-num {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 66px;
  line-height: 1;
  color: #4a4a4a;
  flex: 0 0 62px;
  text-align: center;
}
.step h3 {
  font-family: var(--latin-sans);
  font-weight: 600;
  font-size: 20px;
  color: #3e3e3e;
  direction: ltr;
  text-align: right;
}
.step p {
  font-weight: 400;
  font-size: 20px;
  line-height: 27px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* her text color for all landing-page text (desktop + phone) */
.intro, .split-text .lead, .split-text p, .step h3, .step p { color: #575757; }

.cta { text-align: center; padding: 30px 0 61px; }
.section.how { margin-bottom: 0; }

.footer {
  background: #8d9695;
  height: 300px;
  display: flex;
  align-items: center;
  padding-left: 66px;
}
.footer .wordmark {
  font-family: var(--serif-caps);
  font-weight: 400;
  font-size: 54px;
  letter-spacing: .08em;
  color: #fff;
}

/* =================================================================
   QUIZ PAGE (desktop numbers measured from her 1440px designs)
   ================================================================= */
.topbar {
  position: relative;
  height: 86px;
  border-bottom: 1px solid #676767;
}
.topbar .logo { position: absolute; left: 51.5px; top: 16px; width: 38.5px; color: #565654; }
.topbar .slogan {
  position: absolute; right: 53.5px; top: 21px;
  font-family: var(--serif-italic); font-style: italic; font-size: 29.4px; line-height: 1.2;
  color: #666664; text-decoration: none;
}

.quiz-wrap {
  min-height: calc(100vh - 86px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 92px 20px 60px;
}
.quiz-box {
  position: relative;
  width: 858px; height: 555px;
  background: #fff;
  box-shadow: 5px 6px 18px rgba(0, 0, 0, .17);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 60px 26px;
  direction: rtl;
  color: #565656;
}

.q-step { display: none; animation: fade .35s ease; }
.q-step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.q-title {
  text-align: center;
  font-weight: 500; font-size: 20px; line-height: 25px;
  color: #565656;
  margin-bottom: 20px;
}
.q-title .sub { display: block; }
.q-title.align-options { text-align: right; padding-right: 115px; }

/* answer lists: one right edge for every list question (x = 975 in her designs) */
.options { list-style: none; padding-right: 114px; }
.options label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 400; font-size: 20px; line-height: 31px;
  padding: 10px 0;
  color: #565656; cursor: pointer;
}
.options input, .consent input {
  appearance: none; -webkit-appearance: none;
  flex: none; position: relative; cursor: pointer; margin: 0;
}
.options input { width: 11.5px; height: 11.5px; border: 1px solid #565656; border-radius: 50%; }
.options input:checked::after { content: ""; position: absolute; inset: 2.25px; border-radius: 50%; background: #565656; }
@media (hover: hover) { .options label:hover { color: #2b2b2b; } }

/* image tiles */
.tiles {
  direction: ltr;
  display: grid; grid-template-columns: repeat(5, 120px);
  gap: 17px 17.5px; justify-content: center;
  margin: 37px 0 22px;
}
.tile { display: block; cursor: pointer; text-align: center; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile .img {
  display: block; width: 120px; height: 120px; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.13);
  border: 1px solid transparent; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .tile:hover .img { box-shadow: 0 2px 8px rgba(0,0,0,.2); } }
.tile input:checked + .img { border-color: #676767; box-shadow: none; }
.tile input:focus-visible + .img { outline: 2px solid var(--sage); outline-offset: 2px; }
.tile .name {
  display: block; font-family: var(--serif-caps); font-weight: 400; font-size: 12px; line-height: 1;
  color: #565656; margin-top: 10px;
}

/* free text: ruled lines like her design */
.q-textarea {
  display: block; width: 680px; height: 315px; margin: 3px auto 0;
  border: none; resize: none; outline: none; padding: 0 4px;
  font-family: var(--hebrew); font-size: 20px; line-height: 63px; color: #565656;
  background: repeating-linear-gradient(to bottom, transparent 0 62px, #939393 62px 63px);
}

/* contact form */
.contact { width: 680px; margin: -18px auto 0; }
.field {
  display: flex; align-items: flex-end; gap: 6px;
  height: 63px; border-bottom: 1px solid #939393;
}
.field:first-child { height: 62px; }
.field label { font-size: 20px; line-height: 1.6; color: #565656; white-space: nowrap; }
.field input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--hebrew); font-size: 20px; color: #2b2b2b; padding: 0 4px 4px;
}
.field.invalid { border-bottom-color: #a8564e; }
.consent {
  display: flex; align-items: flex-start; gap: 9px; margin-left: -32px;
  font-size: 16px; line-height: 23px; color: #737373; cursor: pointer;
}
.consent:first-of-type { margin-top: 33px; }
.consent input { width: 12.5px; height: 12.5px; border: 1px solid #737373; margin-top: 5px; }
.consent input:checked::after {
  content: ""; position: absolute; left: 3.5px; top: .5px; width: 3px; height: 7px;
  border: solid #565656; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.consent a { color: inherit; text-underline-offset: 3px; }
.consent.invalid { color: #a8564e; }
.consent.invalid input { border-color: #a8564e; }

/* Next / Send / Back */
.q-nav { display: flex; flex-direction: column; align-items: center; margin-top: 22px; position: relative; }
.btn-box {
  width: 150px; height: 37px;
  border: 1px solid #676767; background: transparent;
  font-family: var(--latin-sans); font-weight: 500; font-size: 16px; color: #666;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-box:active, .btn-send { background: var(--sage); border-color: var(--sage); color: #fff; }
@media (hover: hover) { .btn-box:hover { background: var(--sage); border-color: var(--sage); color: #fff; } }
/* touch screens (no hover): Next turns green once the question is answered */
@media (hover: none) { .btn-box.ready { background: var(--sage); border-color: var(--sage); color: #fff; } }
.btn-send:active { background: #52685f; border-color: #52685f; }
@media (hover: hover) { .btn-send:hover { background: #52685f; border-color: #52685f; } }
.btn-box[hidden] { display: none; }
.btn-send:disabled { opacity: .7; cursor: default; }
.link-back {
  margin-top: 10px; background: none; border: none; cursor: pointer;
  font-family: var(--latin-sans); font-size: 10px; color: #737373;
  text-decoration: underline; text-underline-offset: 2px;
}
@media (hover: hover) { .link-back:hover { color: #565656; } }
.link-back[hidden] { visibility: hidden; display: block; }

.q-error {
  position: absolute; top: -26px; left: 0; right: 0;
  text-align: center; font-size: 14px; color: #a8564e;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.q-error.show { opacity: 1; }

.thanks { text-align: center; }
.thanks h2 {
  font-family: var(--serif-italic); font-style: italic; font-weight: 400;
  font-size: 44px; color: #4a4a4a; margin-bottom: 18px; direction: ltr;
}
.thanks p { font-size: 20px; font-weight: 400; line-height: 1.6; }

/* =================================================================
   PRIVACY POLICY PAGE
   ================================================================= */
.policy {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 100px;
  color: #565656; font-size: 17px; line-height: 1.7;
}
.policy h1 { font-weight: 500; font-size: 30px; line-height: 1.3; color: #2b2b2b; }
.policy .updated { color: #666666; font-size: 15px; margin: 6px 0 32px; }
.policy h2 { font-weight: 600; font-size: 19px; color: #2b2b2b; margin: 34px 0 10px; }
.policy p { margin-bottom: 12px; }
.policy ul { padding-right: 22px; margin: 0 0 12px; }
.policy li { margin-bottom: 6px; }
.policy a { color: inherit; text-underline-offset: 3px; }

/* =================================================================
   ACCESSIBILITY: visible keyboard focus, reduced motion
   ================================================================= */
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.options input:focus-visible, .consent input:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* spam trap field: invisible to people, bots tend to fill it */
.hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; border: 0 !important; pointer-events: none; }

/* phone-only line breaks / paragraph gaps (shown in the mobile block) */
.m-br, .m-gap { display: none; }

/* keeps a phrase on one line, so narrow screens wrap only between phrases */
.nw { white-space: nowrap; }

/* =================================================================
   PHONES & SMALL TABLETS (< 900px)
   Everything for mobile lives inside this block, so the desktop
   layout above is untouched.
   ================================================================= */
@media (max-width: 899px) {
  body { min-width: 0; }

  .btn-outline { font-size: 22px; padding: 12px 44px; }

  /* ---- Landing: hero ---- */
  /* Composition follows her mobile screenshot; everything is in vw so it
     scales with the phone width and stays aligned with the photo. */
  .hero {
    height: 186.3vw;
    background-image: url("../images/photos/hero-mobile.jpg");
    background-position: center top;
  }
  .hero .logo { top: 7.85vw; left: 4.45vw; width: 6.85vw; }
  .hero-text { top: 0; left: 0; right: 0; bottom: 0; position: absolute; }
  .hero h1 { font-size: 11.94vw; line-height: 1; } /* 48px on her 402px design */
  .hero h1 .nw { display: block; position: absolute; }
  .hero h1 .nw:first-child { left: 4.55vw; top: 41.3vw; }   /* YOUR TASTE. */
  .hero h1 .nw:last-child { right: 4.35vw; top: 60.15vw; }   /* HIS TIMING. */
  .hero .tagline { position: absolute; left: 0; right: 0; top: 76.65vw; margin: 0; text-align: center; font-size: 4.72vw; }
  .scroll-down { bottom: 12.6vw; width: 8.5vw; }
  .scroll-down svg { width: 100%; height: 4.3vw; display: block; }

  @media (min-width: 600px) { .hero { height: min(186.3vw, 100svh); } }

  /* ---- Landing: content ----
     Sizes follow her iPhone 16 Pro design (402px wide). 1 --u = 1px of that
     design, scaled to the phone width (capped at 560px for tablets), so line
     breaks stay the same on every phone. */
  :root { --u: calc(min(100vw, 560px) / 402); }
  .m-br { display: inline; }
  .m-gap { display: block; height: calc(20 * var(--u)); }

  .container { width: auto; max-width: 600px; padding: 0 calc(18 * var(--u)); }
  .intro {
    font-size: calc(13 * var(--u)); line-height: calc(20 * var(--u));
    padding: calc(31 * var(--u)) calc(18 * var(--u)) calc(25 * var(--u));
    max-width: 600px; margin: 0 auto;
  }
  .intro br:not(.m-br) { display: none; } /* intro flows; only the paragraph gap stays */

  /* photo first, then title + line, then text (as in her design) */
  .section { display: flex; flex-direction: column; margin-bottom: calc(15 * var(--u)); }
  .split, .split.reverse { display: contents; }
  .img-placeholder {
    order: -1; flex: none; align-self: center;
    width: calc(304 * var(--u)); height: calc(380 * var(--u)); aspect-ratio: auto;
    margin-bottom: calc(25 * var(--u));
  }
  .section-title {
    font-size: calc(30 * var(--u)); line-height: calc(36 * var(--u));
    padding-bottom: calc(12 * var(--u)); margin-bottom: calc(24 * var(--u));
  }
  /* text may run 8px into the left margin: the browser draws the font a hair
     wider than Figma, and lines that exactly fill her design would wrap early */
  .split-text, .split.reverse .split-text { padding-top: 0; width: auto; margin-left: calc(-8 * var(--u)); }
  .split-text .lead { font-size: calc(15 * var(--u)); line-height: calc(19 * var(--u)); margin-bottom: calc(18 * var(--u)); }
  .split-text p { font-size: calc(13 * var(--u)); line-height: calc(19 * var(--u)); margin-bottom: calc(20 * var(--u)); }

  .how { padding-top: calc(11 * var(--u)); }
  .how .section-title { margin-bottom: calc(30 * var(--u)); }
  .steps { margin-right: 0; }
  .step { gap: calc(14 * var(--u)); margin-bottom: calc(42 * var(--u)); align-items: flex-start; }
  .step-num { font-size: calc(56 * var(--u)); flex: 0 0 calc(50 * var(--u)); }
  .step h3 { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); }
  .step p { font-size: calc(13 * var(--u)); line-height: calc(19 * var(--u)); margin-top: 0; }
  .step-body { flex: 1; margin-left: calc(-14 * var(--u)); }

  .cta { padding: calc(10 * var(--u)) 0 calc(35 * var(--u)); line-height: 0; } /* + 15 section margin = 50 */
  .cta .btn-outline {
    font-size: calc(19 * var(--u)); width: calc(128 * var(--u));
    padding: calc(12 * var(--u)) 0; border-width: 1px; line-height: 1.2;
  }

  .footer { height: calc(65 * var(--u)); padding-left: calc(18 * var(--u)); }
  .footer .wordmark { font-size: calc(25 * var(--u)); }

  /* ---- Privacy ---- */
  .policy { padding: 34px 18px 70px; font-size: 15px; }
  .policy h1 { font-size: 24px; }
  .policy h2 { font-size: 17px; margin-top: 26px; }

  /* ---- Quiz ---- */
  .topbar { height: 60px; }
  .topbar .logo { left: 16px; top: 11px; width: 27px; }
  .topbar .slogan { right: 16px; top: 15px; font-size: 21px; }

  .quiz-wrap { min-height: calc(100svh - 60px); padding: 24px 14px 40px; }
  .quiz-box { width: 100%; max-width: 560px; height: auto; min-height: 480px; padding: 34px 18px 22px; }

  .q-title { font-size: 17px; line-height: 23px; margin-bottom: 14px; }
  .q-title.align-options { text-align: center; padding-right: 0; }
  .options { padding-right: 4px; }
  .options label { font-size: 16px; line-height: 22px; padding: 9px 0; align-items: flex-start; gap: 10px; }
  .options input { width: 13px; height: 13px; margin-top: 4.5px; }
  .options input:checked::after { inset: 2.5px; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; max-width: 300px; margin: 22px auto 0; }
  .tile .img { width: 100%; height: auto; aspect-ratio: 1; }
  .tile .name { font-size: 13px; margin-top: 8px; }

  .q-textarea { width: 100%; height: 240px; font-size: 16px; line-height: 48px;
    background: repeating-linear-gradient(to bottom, transparent 0 47px, #939393 47px 48px); }

  .contact { width: 100%; }
  .field, .field:first-child { height: 52px; }
  .field label, .field input { font-size: 16px; } /* 16px+ stops iPhone zooming in on tap */
  .consent { font-size: 13px; line-height: 19px; gap: 8px; margin-left: 0; }
  .consent input { margin-top: 3px; }
  .consent:first-of-type { margin-top: 20px; }

  .q-nav { margin-top: 30px; }
  .btn-box { width: 150px; height: 42px; font-size: 16px; } /* comfortable tap size */
  .link-back { font-size: 13px; padding: 8px 16px; margin-top: 2px; }

  .thanks h2 { font-size: 34px; }
  .thanks p { font-size: 17px; }
}
