/* ShiraMed home pages (he/ and en/ index only) · Apple craft layer, 3.10.2026
   Loaded AFTER style.css by the two home pages only. Palette and fonts are the house's, unchanged.
   Logical properties throughout; no letter-spacing on Hebrew. Motion: transform + opacity, <= 450ms. */

:root {
  --ap-ease: cubic-bezier(.28,.11,.32,1);
  --tile: #F1EDE0;            /* ivory-deep: one step off the page, same hue */
  --ap-ring: var(--rose-deep);
}
html { scroll-padding-block-start: 72px; }
body { font-size: 1.0625rem; line-height: 1.5; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- focus, skip ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ap-ring); outline-offset: 2px; border-radius: 8px;
}
.form-section a:focus-visible, .form-section button:focus-visible, footer a:focus-visible,
.form-section input:focus-visible, .form-section textarea:focus-visible { outline-color: var(--gold); }
.skip {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200;
  background: var(--night); color: var(--ivory); padding: 12px 20px; border-radius: 980px;
  transform: translateY(-200%); text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

/* ---------- navigation: one slim sticky bar ---------- */
.ap-nav {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: color-mix(in srgb, var(--ivory) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-block-end: 1px solid rgba(31,42,64,.1);
}
.ap-nav-in {
  max-width: 1200px; margin-inline: auto; padding-inline: 24px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ap-nav .brand { gap: 10px; flex-shrink: 0; min-height: 44px; }
.ap-nav .brand .logo { height: 36px; }
.ap-nav .brand .mark { font-size: 1.35rem; letter-spacing: 0; white-space: nowrap; }
html[lang="en"] .ap-nav .brand .mark { letter-spacing: .01em; }
.ap-links { display: flex; gap: 8px; margin-inline: auto; }
.ap-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px;
  color: var(--night-soft); text-decoration: none; font-size: 1rem; border-radius: 980px;
  transition: color .2s var(--ap-ease), background .2s var(--ap-ease);
}
.ap-links a:hover { color: var(--night); background: rgba(31,42,64,.06); }
.ap-end { display: flex; align-items: center; gap: 12px; }
.ap-nav .lang-switch { font-size: .9375rem; padding-inline: 16px; }
.ap-pill, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 44px; padding: 12px 24px; border-radius: 980px; font-size: 1.0625rem; font-weight: 600;
  background: var(--rose-deep); color: #fff; box-shadow: none; border: 0;
  transition: background .2s var(--ap-ease), transform .2s var(--ap-ease);
}
.ap-pill { padding: 8px 20px; font-size: 1rem; }
.ap-pill:hover, .btn-primary:hover { background: #7E4550; transform: none; }
.ap-pill:active, .btn-primary:active, .btn:active { transform: scale(.98); }
.ap-burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 50%;
}
.ap-burger span {
  position: absolute; inset-inline: 12px; height: 2px; background: var(--night); border-radius: 2px;
  transition: transform .25s var(--ap-ease);
}
.ap-burger span:first-child { inset-block-start: 18px; }
.ap-burger span:last-child { inset-block-start: 25px; }
.ap-open .ap-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.ap-open .ap-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.ap-sheet {
  position: fixed; inset: 56px 0 0 0; z-index: 90; visibility: hidden; opacity: 0;
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: opacity .25s var(--ap-ease), visibility 0s linear .25s; overflow-y: auto;
}
.ap-open .ap-sheet { visibility: visible; opacity: 1; transition-delay: 0s; }
.ap-open { overflow: hidden; }
.ap-sheet nav { display: flex; flex-direction: column; padding: 32px 24px 48px; max-width: 560px; margin-inline: auto; }
.ap-sheet a {
  display: flex; align-items: center; min-height: 56px; font-size: 1.75rem; line-height: 1.2; color: var(--night);
  font-family: var(--font-display); text-decoration: none; border-block-end: 1px solid rgba(31,42,64,.1);
  opacity: 0; transform: translateY(12px);
}
.ap-open .ap-sheet a { opacity: 1; transform: none; transition: opacity .35s var(--ap-ease), transform .35s var(--ap-ease); transition-delay: calc(var(--i) * 50ms + 60ms); }
.ap-sheet a:last-child { border: 0; font-size: 1.125rem; font-family: var(--font-body); color: var(--ink-muted); }

@media (max-width: 900px) {
  .ap-links, .ap-nav .lang-switch { display: none; }
  .ap-burger { display: inline-block; }
  .ap-nav-in { gap: 12px; }
  .ap-end { margin-inline-start: auto; gap: 8px; }
}

/* ---------- buttons, text link ---------- */
.btn { font-size: 1.0625rem; padding: 12px 24px; min-height: 48px; display: inline-flex; align-items: center; }
.btn-ghost {
  border: 0; background: transparent; color: var(--rose-deep); padding-inline: 8px; font-weight: 600;
  transition: color .2s var(--ap-ease);
}
.btn-ghost:hover { background: transparent; color: #7E4550; }
.hero .btn-ghost::after, .dna-card .btn-ghost::after { content: "\203A"; margin-inline-start: .35em; font-size: 1.3em; line-height: 1; }
html[dir="rtl"] .hero .btn-ghost::after, html[dir="rtl"] .dna-card .btn-ghost::after { content: "\2039"; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 112px) clamp(72px, 11vw, 160px); }
.hero .wrap { max-width: 1200px; }
.hero-grid { grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 88px); }
.hero .eyebrow {
  font-size: 1.1875rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--rose-deep);
  margin-block-end: 20px;
}
html[lang="en"] .hero .eyebrow { letter-spacing: 0; }
.hero h1 {
  font-size: clamp(40px, 4.7vw, 68px); line-height: 1.06; margin-block-end: 28px;
}
html[lang="en"] .hero h1 { letter-spacing: -.02em; }
.hero .lede { font-size: 1.3125rem; line-height: 1.5; max-width: 46ch; margin-block-end: 40px; }
.cta-row { gap: 12px 24px; }
.hero-portrait img { box-shadow: 0 30px 70px rgba(31,42,64,.16); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 440px; }
}

/* ---------- rhythm ---------- */
section { padding-block: clamp(72px, 11vw, 160px) clamp(80px, 12vw, 176px); }
.testi-strip { padding-block: clamp(64px, 9vw, 128px); }
h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1.1; margin-block-end: clamp(20px, 3vw, 36px); }
html[lang="en"] h2 { letter-spacing: -.015em; }
.section-num { display: none; }
.prose { max-width: 65ch; font-size: 1.0625rem; line-height: 1.5; }
.prose p + p { margin-block-start: 18px; }
#what .prose p:first-child, #who .prose:first-of-type { font-size: 1.3125rem; line-height: 1.4; }
.wrap { max-width: 980px; }
.hero .wrap, .ap-nav-in { max-width: 1200px; }
.hairline { display: none; }
.hairline + * { }

/* ---------- tiles ---------- */
.evidence { border: 0; background: var(--tile); border-radius: 28px; padding: clamp(28px, 4vw, 48px); margin-block-start: 48px; }
.evidence h3 { font-size: 1.75rem; margin-block-end: 18px; }
.evidence li { font-size: 1.0625rem; }
.evidence li::before { background: var(--rose); }
.chips { margin-block-start: 32px; gap: 12px; }
.chip { border: 0; background: var(--moonblue); font-size: 1.0625rem; padding: 10px 22px; color: var(--night); }

.steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-block-start: 48px;
}
.steps li {
  display: flex; flex-direction: column; gap: 20px; border: 0; background: var(--tile);
  border-radius: 28px; padding: clamp(28px, 4vw, 48px);
}
.steps li:nth-child(1), .steps li:nth-child(6) { background: var(--moonblue); }
.steps li::before { font-size: 3.25rem; color: var(--rose-deep); opacity: .55; }
.steps h3 { font-size: 1.3125rem; line-height: 1.3; margin-block-end: 8px; text-wrap: balance; }
.steps p { font-size: 1.0625rem; max-width: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.symptoms { gap: 12px; margin-block-start: 32px; }
.symptoms li {
  background: var(--tile); border-radius: 20px; padding: 20px 24px; padding-inline-start: 52px;
  color: var(--night); font-size: 1.0625rem; line-height: 1.4;
}
.symptoms li::before { inset-inline-start: 24px; inset-block-start: 1.35em; }

#shira { background: var(--tile) !important; }
.about-grid { gap: clamp(32px, 6vw, 80px); margin-block-start: 48px; }
.about-grid img { border-radius: 24px; box-shadow: none; }
blockquote { font-size: 1.375rem; line-height: 1.4; margin-block-start: 32px; font-style: normal; font-family: var(--font-display); color: var(--night); }
blockquote cite { font-family: var(--font-body); font-size: 1rem; }

.dna-card { border: 0; background: var(--tile); border-radius: 28px; padding: clamp(28px, 4vw, 48px); }
.dna-card .t { font-size: 1.75rem; }

.testi-lead, .testi { border: 0; box-shadow: none; background: var(--ivory); border-radius: 28px; }
.testi-lead { padding: clamp(28px, 4vw, 56px); }
.testi { padding: 28px 30px; border-radius: 24px; }
.testi-row { gap: 20px; margin-block-start: 20px; }
.testi-lead q { font-size: 1.1875rem; line-height: 1.6; }
.testi-lead .who { border-block-start-color: rgba(31,42,64,.12); }

/* video: bigger, rounder */
.video-player { border-radius: 24px; box-shadow: none; }
.video-block h3 { font-size: 1.75rem; }
.video-block .v-note { font-size: 1.0625rem; }
#what, #who, #how, #video { }

/* ---------- form on night ---------- */
.form-section { border-radius: 32px 32px 0 0; }
.form-section .wrap { max-width: 760px; }
.price-block { border-radius: 20px; }
input, textarea { border-radius: 12px; min-height: 48px; font-size: 1.0625rem; }
.btn-primary { border-radius: 980px; }

/* ---------- footer: quiet ---------- */
footer { font-size: .875rem; padding-block: 56px 64px; }
footer .wrap { border-top: 1px solid rgba(205,185,143,.25); padding-top: 32px; max-width: 1200px; }
footer a { color: #D9C9A3; font-size: .875rem; }
footer a:hover { text-decoration: underline; }
footer strong { font-size: 1.125rem; }

/* ---------- motion: Apple reveal, <= 450ms, stagger 60ms ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ap-ease), transform .45s var(--ap-ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .steps li:nth-child(2n), .js-reveal .symptoms li:nth-child(2n) { transition-delay: 60ms; }
.js-reveal .steps li:nth-child(n+3):nth-child(odd) { transition-delay: 0ms; }
.wa-float { transition: transform .2s var(--ap-ease); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .ap-sheet a { opacity: 1; transform: none; }
}

/* ---------- round 2: taps and small text ---------- */
.check input { width: 44px; height: 44px; flex: none; transform: none; }
label, .check, .evidence .caveat, .testi .who, .testi .src, blockquote cite, .testi-lead .who, .ap-nav .lang-switch { font-size: 1rem; }
.testi-note, .form-note, .price-block .how { font-size: .875rem; }
section { padding-block-end: clamp(48px, 7vw, 96px); }
.form-section { padding-block-end: clamp(72px, 10vw, 128px); }
#shira { padding-block-end: clamp(72px, 10vw, 128px); }
#dna { padding-block-start: clamp(56px, 8vw, 96px); }
.check input { border-radius: 10px; }
