/* בוקר שוקר — עיצוב תואם 1:1 ל-erly.co (מצב בהיר). בלי framework, בלי build. */

:root {
  --bg: #ffffff;
  --bg-raised: #f4f4f5;
  --border: #e4e4e7;
  --fg: #09090b;
  --fg-muted: #52525b;
  --fg-faint: #a1a1aa;
  --accent: #b8862f;
  --accent-ink: #ffffff;
  --radius: 20px;
  --container: 1040px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header — static, not sticky */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--fg);
}

@media (min-width: 760px) {
  .main-nav {
    display: flex;
  }
}

/* Pills / eyebrows */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* App Store badge */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #000;
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1;
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge .lines {
  line-height: 1.2;
  text-align: start;
}

.store-badge .lines .small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #d4d4d8;
  margin-bottom: 0.1rem;
}

.store-badge .lines .big {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hero */

.hero {
  padding-block: 3rem 4rem;
  text-align: center;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 1.25rem;
}


.lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--fg-faint);
}

.hero-visual {
  margin-top: 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: min(1rem, 3vw);
  max-width: 100%;
}

.hero-visual .phone:nth-child(1) {
  transform: rotate(-6deg);
  z-index: 1;
}

.hero-visual .phone:nth-child(2) {
  transform: rotate(5deg) translateY(-1.75rem);
  width: clamp(115px, 28vw, 194px);
  opacity: 0.94;
}

/* Phone frame (holds a real screenshot) */

.phone {
  width: clamp(130px, 32vw, 220px);
  border-radius: 2.4rem;
  background: #000;
  border: 1px solid #2a2723;
  padding: 0.4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.phone-screen {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #141210;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1rem;
  background: radial-gradient(circle at 50% 40%, #1e1b17 0%, #141210 70%);
}

.phone-screen .placeholder img {
  width: 25%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 22%;
  opacity: 0.9;
}

.phone-screen .placeholder span {
  font-size: 0.65rem;
  line-height: 1.5;
  color: #716b62;
}

.phone-notch {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5%;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

/* Sections */

section {
  padding-block: 4.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 2rem;
}

.section-head {
  max-width: 34rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 1rem 0 0.75rem;
}

.section-head p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* Numbered steps */

.steps {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 30rem;
  margin-inline: auto;
}

.step-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 1.25rem;
  inset-inline-start: 1.25rem;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.step-text {
  text-align: center;
}

.step-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.step-text p {
  color: var(--fg-muted);
  margin: 0;
}

/* Feature grid ("Beyond the alarm") */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2rem;
  max-width: 40rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.feature p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* FAQ */

.faq {
  max-width: 38rem;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chevron {
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform 0.15s ease;
}

.faq-item[open] summary .chevron {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--fg-muted);
  margin: 0.9rem 0 0;
}

/* Download / footer */

.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin: 0 0 2rem;
}

.site-footer {
  padding-block: 3rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 3.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  margin: 0 0 0.9rem;
  color: var(--fg-muted);
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.85rem;
  color: var(--fg-faint);
  text-align: center;
  margin: 2rem 0 0;
}

/* Legal pages */

.legal-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.legal-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover {
  color: var(--fg);
}

.lang-switch button[aria-pressed='true'] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.legal-page {
  max-width: 46rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal-page .back {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
}

.legal-page .back:hover {
  color: var(--fg);
}

.legal-hero {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 1rem 0 0.85rem;
  text-align: start;
}

.legal-lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.toc {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin: 0 0 0.85rem;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.92rem;
}

.toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
  color: var(--fg-faint);
}

.toc a {
  color: var(--fg-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.legal-section h2 .num {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-inline-end: 0.5rem;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.6rem 0 0.4rem;
}

.legal-page p,
.legal-page li {
  color: var(--fg-muted);
}

.legal-page p {
  margin: 0 0 0.9rem;
}

.legal-page ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.45rem;
}

.legal-page strong {
  color: var(--fg);
  font-weight: 700;
}

.legal-page a:not(.back):not(.brand) {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent);
}

.legal-page a:not(.back):not(.brand):hover {
  color: var(--accent);
}

.callout {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.35rem 0;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout .callout-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 1.35rem 0;
}

table.data {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  text-align: start;
  vertical-align: top;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
}

table.data th {
  background: var(--bg-raised);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

table.data td:first-child {
  color: var(--fg);
  font-weight: 600;
}

table.data tr:last-child td {
  border-bottom: 0;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--fg-faint);
}

.legal-foot nav {
  display: flex;
  gap: 1.25rem;
}

.legal-page .updated {
  color: var(--fg-faint);
  font-size: 0.85rem;
}

@media print {
  .legal-bar,
  .legal-foot nav {
    display: none;
  }

  .legal-page {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
