/* עצור landing page. "Sky" identity, matching the app (ui/sky/Sky.kt):
   cloudy sky or paper-grey ground, glass and paper cards, terracotta accents,
   Noto Serif Hebrew headings, IBM Plex Sans Hebrew text. Clouds are drawn by sky.js. */
:root {
  --paper: #eceae6;
  --paper-card: #f8f7f4;
  --glass: rgba(255, 255, 255, .62);
  --glass-edge: rgba(37, 30, 24, .09);
  --ink: #251e18;
  --ink-soft: #6b5c4d;
  --ink-faint: #8d8173;
  --terracotta: #b0532e;
  --terracotta-deep: #8e3f20;
  --terracotta-100: rgba(176, 83, 46, .1);
  --cream: #fdfaf4;
  --dusk-1: #22304a;
  --dusk-2: #4b4a66;
  --line: rgba(37, 30, 24, .09);
  --line-strong: rgba(37, 30, 24, .18);
  --max: 1120px;
  --header-h: 68px;
  --font: "IBM Plex Sans Hebrew", Arial, sans-serif;
  --display: "Noto Serif Hebrew", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(37, 30, 24, .06);
  --shadow-md: 0 10px 30px rgba(37, 30, 24, .10);
  --shadow-phone: 0 30px 70px rgba(37, 52, 80, .28), 0 6px 18px rgba(37, 30, 24, .12);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
/* Fallback sky (and the privacy page's ground) until sky.js paints. */
html { background: linear-gradient(#a9c1df, #d3d5e4 45%, #efdcd0) fixed #d3d5e4; }
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 600; } /* the weights loaded: 400/500/600 */
figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }

.container { position: relative; width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* The one sky (sky.js): fixed behind everything, slid up as you scroll.
   Clouds are separate canvases drifting on the compositor. */
.sky-page { position: fixed; top: 0; left: 0; z-index: -1; overflow: hidden; pointer-events: none; will-change: transform; }
.sky-page canvas { position: absolute; top: 0; left: 0; }
.sky-cloud {
  will-change: transform;
  animation-name: sky-drift; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes sky-drift {
  from { transform: translate3d(var(--from), 0, 0); }
  to { transform: translate3d(var(--to), 0, 0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: none; border-radius: 999px; padding: .8rem 1.5rem;
  font-family: var(--font); font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--cream); box-shadow: 0 10px 26px rgba(176, 83, 46, .3); }
.btn-primary:hover { background: var(--terracotta-deep); box-shadow: 0 14px 32px rgba(176, 83, 46, .38); }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn-header { background: var(--ink); color: var(--cream); padding: .55rem 1.3rem; font-size: .95rem; }
.btn-header:hover { background: #000; }
.link-secondary { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(37,30,24,.3); text-underline-offset: 5px; }
.link-secondary:hover { color: var(--terracotta); text-decoration-color: currentColor; }

/* Header: clear over the sky, glass once you scroll. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .45);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.logo-mark {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(176, 83, 46, .16);
}
.header-nav { display: flex; gap: 1.7rem; margin-inline-start: auto; }
.header-nav a { font-weight: 500; font-size: .96rem; color: var(--ink); opacity: .75; }
.header-nav a:hover { opacity: 1; color: var(--terracotta); }

/* Hero: full sky, slides under the header. */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 3.5rem) 0 5.5rem;
  min-height: min(100vh, 900px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .84rem; letter-spacing: .04em; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-edge); padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.3rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-headline { font-size: clamp(2.9rem, 6.4vw, 5rem); margin-bottom: 1.3rem; }
.hero-headline em { font-style: normal; color: var(--terracotta); }
.hero-sub { font-size: 1.16rem; color: var(--ink); opacity: .82; max-width: 34rem; margin-bottom: 1.9rem; }
.hero-ctas { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 290px; padding: 9px; border-radius: 44px;
  background: linear-gradient(160deg, #2c2722, #121010);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: auto; border-radius: 36px; }
.phone-hero { width: 320px; transform: rotate(-2deg); }
/* Hero: animated dial drawn over the screenshot, in its pixel space. */
.phone-shot { position: relative; }
.phone-shot svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 36px; }

/* Problem statement */
.problem { padding: 5rem 0 4rem; }
.problem-text { max-width: 44rem; margin-inline: auto; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.42; color: var(--ink); }

/* Section heads */
.section-eyebrow { text-align: center; font-weight: 600; font-size: .84rem; letter-spacing: .12em; color: var(--terracotta); margin-bottom: .6rem; }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 3rem; }

/* Shared card look: frosted glass floating on the sky. */
.step, .feature-card, .safety-card, .faq-item, .capture-general, .capture-ios, .privacy-inner {
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 34px rgba(60, 70, 100, .10);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

/* How it works */
.how { padding: 4rem 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { border-radius: 26px; padding: 2rem 1.7rem; }
.step-num {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--cream); background: var(--terracotta);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); }

/* Features */
.features { padding: 4rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; gap: 1.2rem; }
/* Long card takes a full row so the 3-column grid closes without an orphan. */
.feature-full { grid-column: 1 / -1; }
.feature-card { border-radius: 26px; padding: 1.8rem; transition: transform .25s var(--ease), box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.feature-card p { color: var(--ink-soft); font-size: .99rem; }
/* The wide card is the one solid terracotta accent. */
.feature-wide { grid-column: span 2; background: linear-gradient(150deg, #bd6239, var(--terracotta) 60%, #9a4524); border-color: transparent; color: var(--cream); }
.feature-wide h3 { color: var(--cream); }
.feature-wide p { color: rgba(253, 250, 244, .86); }
.feature-wide .feature-icon {
  background-color: rgba(253, 250, 244, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdfaf4' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 8.3a7.4 7.4 0 0 1 0 7.4M9.5 6.2a11.8 11.8 0 0 1 0 11.6M13 4.1a15.9 15.9 0 0 1 0 15.8M16.4 2a20 20 0 0 1 0 20'/%3E%3C/svg%3E");
}

.feature-icon { background-color: rgba(255,255,255,.7); }

.feature-icon { width: 48px; height: 48px; border-radius: 50%; background-color: var(--terracotta-100); background-repeat: no-repeat; background-position: center; background-size: 24px; margin-bottom: 1.1rem; }
.icon-key { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 8.3a7.4 7.4 0 0 1 0 7.4M9.5 6.2a11.8 11.8 0 0 1 0 11.6M13 4.1a15.9 15.9 0 0 1 0 15.8M16.4 2a20 20 0 0 1 0 20'/%3E%3C/svg%3E"); }
.icon-candle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.4-.5-2-1-3-1-2.1-.2-4 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.2.4-2.3 1-3a2.5 2.5 0 0 0 2.5 2.5z'/%3E%3C/svg%3E"); }
.icon-calendar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.icon-breath { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.icon-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.5 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E"); }
.icon-streak { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c1 3 4 5 4 9a4 4 0 0 1-8 0c0-1 .4-2 1-3 .5 1 1.5 1.5 3-.5-1-2 0-4 0-5.5z'/%3E%3C/svg%3E"); }
.icon-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.3 3h3l1.5 4-2 1.4a13 13 0 0 0 6.8 6.8l1.4-2 4 1.5v3a2 2 0 0 1-2.2 2A17.5 17.5 0 0 1 4.3 5.2 2 2 0 0 1 6.3 3z'/%3E%3C/svg%3E"); }
.icon-exit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l-5-5 5-5M5 12h11'/%3E%3C/svg%3E"); }

/* Showcase: real app screens. */
.showcase { padding: 5rem 0; }
.showcase-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; justify-items: center; }
.showcase-item { text-align: center; }
.showcase-item .phone { width: 270px; }
.showcase-item:nth-child(2) .phone { transform: translateY(-1.5rem); }
.showcase-caption { margin-top: 1.3rem; font-weight: 600; color: var(--ink); }

/* Safety */
.safety { padding: 4.5rem 0; }
.safety-lead { max-width: 42rem; margin: -1.6rem auto 2.6rem; text-align: center; font-size: 1.08rem; color: var(--ink-soft); }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.safety-card { border-radius: 26px; padding: 1.9rem; }
.safety-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.safety-card p { color: var(--ink-soft); }

/* Privacy: a glass card on the same sky. */
.privacy-band { padding: 4.5rem 0; }
.privacy-inner { max-width: 46rem; margin-inline: auto; text-align: center; padding: 3rem 2.2rem; border-radius: 32px; }
.privacy-badge {
  width: 60px; height: 60px; margin: 0 auto 1.4rem; border-radius: 50%; background-color: var(--terracotta-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.5 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 30px;
}
.privacy-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.1rem; }
.privacy-copy { font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.6rem; }
.privacy-copy strong { color: var(--ink); }
.privacy-link { font-weight: 600; color: var(--terracotta); text-decoration: underline; text-underline-offset: 4px; }
.privacy-link:hover { color: var(--terracotta-deep); }

/* Privacy page */
.privacy-page { padding: 2rem 0 4rem; }
.privacy-page .container {
  max-width: 46rem; padding: 2.4rem 2.2rem; border-radius: 32px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.privacy-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 1rem 0 1.2rem; }
.privacy-page h2 { font-size: 1.4rem; margin: 1.8rem 0 .5rem; }
.privacy-page p, .privacy-page li { color: var(--ink-soft); }
.privacy-page ul { padding-inline-start: 1.2rem; }
.back { font-weight: 600; color: var(--terracotta); }

/* FAQ */
.faq { padding: 4.5rem 0; }
.faq-inner { max-width: 46rem; }
.faq-item { border-radius: 20px; margin-bottom: .7rem; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.4rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::before {
  content: ""; flex-shrink: 0; width: 15px; height: 15px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0532e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .22s var(--ease);
}
.faq-item[open] summary::before { transform: rotate(180deg); }
.faq-item summary:hover { background: #fff; }
.faq-body { padding: 0 1.4rem 1.3rem; padding-inline-start: 3.2rem; }
.faq-body p { color: var(--ink-soft); font-size: .99rem; }

/* Download: back under the sky, with glass cards. */
.download { padding: 5rem 0 4rem; text-align: center; }
.download-inner { position: relative; z-index: 1; }
.download-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .8rem; }
.download-sub { font-size: 1.12rem; color: var(--ink); opacity: .82; max-width: 32rem; margin: 0 auto 2rem; }
.download-micro { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 2rem 0 2.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.footer-brand { font-weight: 600; color: var(--ink); }
.footer-link { text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--terracotta); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Beta note */
.beta-note { max-width: 34rem; margin-bottom: .9rem; font-size: .93rem; line-height: 1.55; color: var(--ink); opacity: .78; }
.beta-note-lg { margin: 1.4rem auto 0; text-align: center; }
.beta-note-link { font-weight: 600; color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Email capture */
.capture-band { padding: 0 0 5rem; }
.capture { max-width: 34rem; margin-inline: auto; text-align: center; }
.capture-ios { margin-top: 2.8rem; padding: 1.9rem; border-radius: 26px; }
.capture-general { padding: 2.3rem 1.9rem; border-radius: 26px; }
.capture-title { font-size: 1.5rem; margin-bottom: .5rem; }
.capture-general .capture-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.capture-sub { font-size: .98rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.capture-form { display: flex; gap: .6rem; }
.capture-input {
  flex: 1 1 auto; min-width: 0; font-family: var(--font); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .8rem 1.3rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.capture-input::placeholder { color: var(--ink-faint); }
.capture-input:hover { border-color: var(--ink-faint); }
.capture-input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(176, 83, 46, .14); }
.capture-btn { flex: 0 0 auto; }
.capture-btn:disabled { opacity: .6; cursor: default; transform: none; }
.capture-status { min-height: 1.4rem; margin-top: .8rem; font-size: .94rem; font-weight: 600; color: var(--ink-soft); }
.capture-status.is-ok { color: #3f6b46; }
.capture-status.is-error { color: var(--terracotta-deep); }

/* Keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(176, 83, 46, .45); outline-offset: 3px; border-radius: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .phone-hero { width: 280px; transform: none; }
  .header-nav { display: none; }
  .steps, .feature-grid, .showcase-row, .safety-grid { grid-template-columns: 1fr; }
  .feature-wide, .feature-full { grid-column: auto; }
  .showcase-row { gap: 3rem; }
  .showcase-item:nth-child(2) .phone { transform: none; }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-h) + 1.5rem); }
  .btn-lg { width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .link-secondary { text-align: center; }
  .capture-form { flex-direction: column; }
  .capture-btn { width: 100%; }
  .faq-body { padding-inline-start: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky-cloud { animation: none; transform: translate3d(var(--x), 0, 0); }
  .btn:hover, .feature-card:hover { transform: none; }
  .faq-item summary::before { transition: none; }
}
