/* Lama? website. One stylesheet, no build step, no web fonts (no third-party requests). */

:root {
  --paper: #f7f1e8;
  --paper-2: #efe5d6;
  --card: #ffffff;
  --ink: #1b1b3a;
  --muted: #5b5b78;
  --red: #d4351f;
  --yellow: #ffc93c;
  --wood: #8b5a2b;
  --radius: 28px;
  --wrap: 1120px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Arial Hebrew", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--card); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--paper-2); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font-weight: 800; font-size: 30px; text-decoration: none; color: var(--red); letter-spacing: -0.5px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 18px; border: 0; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { cursor: default; }
.badge-soon { font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, 0.7); padding: 2px 10px; border-radius: 999px; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(72px, 12vw, 150px); line-height: 0.95; margin: 0; color: var(--red); letter-spacing: -2px; }
.hero .tagline { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 12px 0 18px; }
.hero p.lead { font-size: 21px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* Phone frame around real screenshots */
.phone { position: relative; width: min(320px, 78vw); aspect-ratio: 1206 / 2622; border-radius: 46px; padding: 10px; background: #111; box-shadow: 0 30px 60px rgba(27, 27, 58, 0.25); margin-inline: auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.tablet { position: relative; aspect-ratio: 1668 / 2420; border-radius: 34px; padding: 12px; background: #111; box-shadow: 0 30px 60px rgba(27, 27, 58, 0.25); }
.tablet img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

/* Hero: an iPad with an iPhone leaning in front of it */
.devices { position: relative; width: min(430px, 80vw); margin: 0 auto 40px; }
.devices .tablet { width: 100%; transform: rotate(2deg); }
.devices .phone { position: absolute; width: 40%; inset-inline-end: -10%; bottom: -8%; transform: rotate(-4deg); padding: 7px; border-radius: 30px; }
.devices .phone img { border-radius: 24px; }

/* Screens: an iPad row and an iPhone row */
.screens-ipad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 64px; }
.screens-ipad figure { margin: 0; text-align: center; }
.screens-ipad .tablet { width: min(380px, 80vw); margin-inline: auto; }
.screens-ipad figcaption { margin-top: 18px; font-weight: 700; }
.screens-ipad figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }
.device-label { display: inline-block; font-size: 15px; font-weight: 800; background: var(--card); border-radius: 999px; padding: 4px 14px; margin-bottom: 20px; }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 68px; }
.section-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.section-lead { font-size: 20px; color: var(--muted); margin: 0 0 40px; max-width: 60ch; }
.alt { background: var(--paper-2); }

/* What's inside */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 28px 24px; }
.tile .num { font-size: 52px; font-weight: 800; line-height: 1; color: var(--red); }
.tile h3 { font-size: 22px; margin: 10px 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 17px; }

/* Screens strip */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.screens figure { margin: 0; text-align: center; }
.screens .phone { width: min(260px, 70vw); }
.screens figcaption { margin-top: 18px; font-weight: 700; }
.screens figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 16px; }

/* Illustrations */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art-grid figure { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.art-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff8ee; }
.art-grid figcaption { padding: 14px 18px 18px; font-weight: 700; font-size: 17px; }
.art-grid figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* Bookcase of issue covers */
.bookcase { background: #c9a77c; border: 14px solid var(--wood); border-radius: 18px; padding: 26px 22px 0; box-shadow: 0 20px 40px rgba(27, 27, 58, 0.18); }
.shelf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; padding-bottom: 16px; border-bottom: 14px solid var(--wood); margin-bottom: 22px; }
.cover { aspect-ratio: 0.74; border-radius: 12px; padding: 10px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25); }
.cover:nth-child(odd) { transform: rotate(-1.5deg); }
.cover:nth-child(3n) { transform: rotate(1.2deg); }
.cover b { font-size: clamp(18px, 2.3vw, 28px); line-height: 1; }
.cover i { font-style: normal; font-size: 12px; font-weight: 800; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 1px 8px; align-self: flex-start; }
.cover span { font-weight: 700; font-size: clamp(11px, 1.2vw, 15px); line-height: 1.25; }

/* Parents */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; list-style: none; padding: 0; margin: 0; }
.checks li { background: var(--card); border-radius: 22px; padding: 20px 22px; }
.checks strong { display: block; font-size: 20px; margin-bottom: 4px; }
.checks span { color: var(--muted); font-size: 17px; }

/* FAQ */
details { background: var(--card); border-radius: 20px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; }
details p { margin: 10px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; border-radius: 36px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { margin: 6px 0 0; opacity: 0.9; }

/* Long-form pages (privacy, terms, support) */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); margin: 0 0 8px; line-height: 1.1; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 26px; margin: 40px 0 10px; }
.page h3 { font-size: 20px; margin: 24px 0 6px; }
.page p, .page li { color: #2c2c48; }
.page ul { padding-inline-start: 24px; }
.page .box { background: var(--card); border-radius: 22px; padding: 22px 24px; margin: 24px 0; }
.page table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; font-size: 16px; }
.page th, .page td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.page th { background: var(--paper-2); }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--paper-2); color: var(--muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; }
.site-footer .logo { font-size: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer small { margin-inline-start: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .ctas { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .screens, .art-grid, .screens-ipad { grid-template-columns: 1fr; }
  .devices { margin-top: 12px; }
  .screens figure + figure { margin-top: 24px; }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .checks { grid-template-columns: 1fr; }
  .nav { display: none; }
  .site-header .btn { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 32px 24px; }
  .site-header .btn { padding: 10px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone, .cover { transform: none !important; }
}
