/* FamilyEmber landing page (lane LP1, Phase A). Shared by index.html and
 * es/index.html. Brand tokens kept from the TB1 brand page: --ember #c2541b,
 * --bg #fbf7f2, and the dark palette. Sizes are in rem so the large-text
 * toggle (html.fe-large) and browser zoom scale everything. Base 18 px. */
:root {
  --bg: #fbf7f2; --ink: #2b1d14; --muted: #5f4f44; --ember: #c2541b; --ember-dark: #8f3a10;
  --on-ember: #ffffff; --card: #ffffff; --soft: #f6ece3; --line: #e3d5c6; --line-strong: #8f3a10;
  --ok: #2e6b34; --focus: #1d4ed8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1410; --ink: #f3e9df; --muted: #c9b8a9; --ember: #f08a4b; --ember-dark: #f5a774;
          --on-ember: #1b1410; --card: #261c16; --soft: #2f231b; --line: #4a382c; --line-strong: #f5a774;
          --ok: #8fd19a; --focus: #93c5fd; }
}
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.fe-large { font-size: 137.5%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--ember-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); }
p { margin: 0 0 1rem; }
.eyebrow { font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-dark); margin: 0 0 .5rem; }
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* ---- Header and nav ---- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: .5rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ember-dark);
         font-weight: 700; letter-spacing: .1em; font-size: .95rem; margin-right: auto; min-height: 44px; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { text-decoration: underline; }
.tool { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .7rem;
        border-radius: 999px; border: 2px solid transparent; background: none; color: var(--ink); font: inherit; font-size: .95rem;
        text-decoration: none; cursor: pointer; }
.tool:hover { text-decoration: underline; }
.tool.pill { border-color: var(--ink); font-weight: 700; }
.tool[aria-pressed="true"] { border-color: var(--ember-dark); color: var(--ember-dark); font-weight: 700; }
.menu-btn { border-color: var(--line); border-radius: 10px; }
.menu-panel { flex-basis: 100%; padding: 0 0 .75rem; }
.menu-panel[hidden] { display: none; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; min-height: 48px; padding: 0 .5rem; color: var(--ink);
        text-decoration: none; font: inherit; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.hide-narrow { display: none; }
@media (min-width: 1000px) {
  .nav-links { display: flex; flex-wrap: wrap; }
  .menu-btn, .menu-panel { display: none !important; }
  .hide-narrow { display: inline-flex; }
  .lang-menu.hide-narrow { display: block; }
}
/* Language dropdown (owner 2026-11-12): every language page, the current one marked. */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; gap: .35rem; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "\25BE"; }
.lang-menu[open] summary { border-color: var(--line); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 14rem; margin: 0; padding: .3rem;
                list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
                box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.lang-menu a, .menu-langs a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 8px;
                              color: var(--ink); text-decoration: none; }
.lang-menu a:hover, .menu-langs a:hover { text-decoration: underline; }
.lang-menu a[aria-current="page"], .menu-langs a[aria-current="page"] { font-weight: 700; color: var(--ember-dark); }
.menu-label { display: block; padding: .6rem .5rem .2rem; color: var(--muted); font-weight: 700; }
.menu-langs ul { padding-left: .75rem; }

/* ---- Sections ---- */
section { padding: 3rem 0; scroll-margin-top: 72px; }
section + section { border-top: 1px solid var(--line); }
.split { display: grid; gap: 2rem; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .split.even { grid-template-columns: 1fr 1fr; align-items: start; }
}
.grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .g2, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.card.soft { background: var(--soft); }
.card.accent { border: 2px solid var(--ember-dark); background: var(--soft); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.badge { display: inline-block; font-size: .9rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
         border: 1px solid var(--line); color: var(--muted); margin-bottom: .6rem; }
.badge.acc { border-color: var(--ember-dark); color: var(--ember-dark); background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; background: var(--card); font-size: .95rem; }
.chips li.soon { border-style: dashed; color: var(--muted); background: transparent; }
.tick { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.tick li { padding-left: 1.6rem; position: relative; }
.tick li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.banner { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 12px; background: var(--soft); border-left: 4px solid var(--ember-dark); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .7rem 1.4rem;
       border-radius: 12px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 1rem/1.2 var(--sans);
       text-decoration: none; cursor: pointer; text-align: center; }
.btn.primary { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.btn.primary:hover { background: var(--ember-dark); border-color: var(--ember-dark); }
@media (prefers-color-scheme: dark) { .btn.primary:hover { color: var(--bg); } }
.btn.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1rem; }
.actions .btn { flex: 1 1 14rem; }
@media (min-width: 820px) { .actions .btn { flex: 0 0 auto; } }
.doors { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.doors a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---- Hero ---- */
.hero { padding-top: 2rem; }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); }
.trust li::before { content: "\2713\00a0"; color: var(--ok); font-weight: 700; }
.photo { position: relative; border-radius: 14px; overflow: hidden; background:
         radial-gradient(circle at 30% 30%, rgba(194, 84, 27, .28), transparent 60%),
         linear-gradient(135deg, var(--soft), var(--card)); border: 1px dashed var(--line-strong);
         display: flex; align-items: flex-end; aspect-ratio: 4 / 3; }
.photo.short { aspect-ratio: 16 / 9; margin-bottom: .9rem; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-note { margin: .6rem; padding: .3rem .6rem; border-radius: 8px; background: var(--card); color: var(--muted); font-size: .9rem; }

/* ---- Sample player ---- */
.player { margin-top: 1rem; }
.player-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.player-head b { font-size: 1rem; }
.player input[type="range"] { width: 100%; height: 44px; accent-color: var(--ember); margin: 0; }
.ctl { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.ctl button { min-width: 48px; min-height: 48px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
              font: 700 .95rem var(--sans); cursor: pointer; padding: 0 .6rem; }
.ctl button.play { min-width: 64px; min-height: 64px; background: var(--ember); border-color: var(--ember); color: var(--on-ember); font-size: 1.3rem; }
.ctl button:disabled { opacity: .55; cursor: default; }
.times { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-msg { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.player-msg:empty { display: none; }

/* ---- Features, steps ---- */
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--ember-dark);
        display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: var(--card);
            border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
                    background: var(--ember); color: var(--on-ember); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; }

/* ---- Roles matrix ---- */
.matrix { margin-top: 1.5rem; }
.matrix summary, .faq summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 700; list-style: none; }
.matrix summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.matrix summary::after, .faq summary::after { content: "+"; font-size: 1.4rem; color: var(--ember-dark); }
.matrix[open] summary::after, .faq details[open] summary::after { content: "\2212"; }
.rtable { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .95rem; }
.rtable caption { text-align: left; }
.rtable th, .rtable td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; text-align: center; vertical-align: top; }
.rtable th[scope="row"], .rtable thead th:first-child { text-align: left; font-weight: 400; }
.rtable thead th { font-weight: 700; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }
@media (max-width: 699px) {
  .rtable thead { position: absolute; left: -9999px; }
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; width: 100%; }
  .rtable tr { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; margin-bottom: .6rem; background: var(--card); }
  .rtable th[scope="row"] { border: 0; font-weight: 700; padding: .25rem 0; }
  .rtable td { border: 0; display: flex; justify-content: space-between; text-align: right; padding: .15rem 0; }
  .rtable td::before { content: attr(data-label); color: var(--muted); text-align: left; padding-right: 1rem; }
}

/* ---- Pricing ---- */
.price { font: 700 2rem/1.1 var(--serif); margin: .25rem 0 1rem; }
.price small { font: 400 .9rem var(--sans); color: var(--muted); }
.pkg { display: flex; flex-direction: column; }
.pkg .tick { flex: 1; }
.hosting { margin-top: 1.5rem; border: 2px solid var(--ember-dark); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--ember); display: grid; gap: 1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%;
                       background: var(--ember); }
.timeline li.dash::before { background: var(--card); border: 2px solid var(--ember-dark); }
.timeline h3 { margin: 0; font-size: 1rem; }
.timeline p { margin: 0; }

/* ---- FAQ ---- */
.faq details { margin-bottom: .6rem; }
.faq details p { padding: .75rem 1rem 0; margin: 0; }

/* ---- Forms ---- */
form.contact { display: grid; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: .4rem; }
label { display: block; font-weight: 700; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea, select { width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: 10px;
        border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; }
textarea { min-height: 7rem; resize: vertical; }
.radio { display: flex; align-items: center; gap: .6rem; min-height: 48px; font-weight: 400; margin: 0; cursor: pointer; }
.radio input { width: 24px; height: 24px; accent-color: var(--ember); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: .75rem 1rem; border-radius: 10px; background: var(--soft); }
.form-status:empty { display: none; }
.form-status.bad { border-left: 4px solid #b42318; }
.form-status.good { border-left: 4px solid var(--ok); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 2rem 0 6rem; color: var(--muted); font-size: .95rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
footer a { color: inherit; display: inline-flex; min-height: 44px; align-items: center; }
footer li { display: flex; align-items: center; min-height: 44px; }

/* ---- Install offer (I1) ---- */
.install-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 2px solid var(--ember-dark);
                 box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom)); }
.install-sheet[hidden] { display: none; }
.install-inner { max-width: 640px; margin: 0 auto; display: grid; gap: .75rem; }
.install-top { display: flex; gap: .9rem; align-items: center; }
.install-top img { width: 52px; height: 52px; border-radius: 12px; }
.install-top h2 { font: 700 1.05rem/1.3 var(--sans); margin: 0; }
.install-top p { margin: 0; }
.install-ios { margin: 0; padding-left: 1.25rem; }
.install-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.install-actions .btn { flex: 1 1 12rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.plain { margin: 0; padding-left: 1.25rem; display: grid; gap: .45rem; }
@media (max-width: 479px), (min-width: 1000px) and (max-width: 1199px) { .brand .wordmark { display: none; } }
.brand img { border-radius: 8px; }
@media (min-width: 1000px) { .g4 .feature { flex-direction: column; } }
.close-logo { display: block; width: 160px; height: auto; margin: 0 auto 1rem; }
/* Photos (owner-supplied 2026-11-08): 16:9, no placeholder frame once a photo is in. */
.photo { aspect-ratio: 16 / 9; }
.photo:has(img) { border: 0; background: var(--soft); }
.photo img.fe-broken { display: none; }
/* Hero carousel (owner 2026-11-11): photos stack, the .on one shows; reduced motion drops the fade. */
.photo.carousel img { transition: opacity 1.2s ease; }
.photo.carousel img:not(.on) { opacity: 0; }
.carousel-pause { position: absolute; right: .5rem; bottom: .5rem; z-index: 1; min-width: 44px; min-height: 44px;
                  border: 0; border-radius: 22px; background: rgba(20, 14, 10, .62); color: #fff; font-size: 1rem; cursor: pointer; }
.carousel-pause:hover { background: rgba(20, 14, 10, .8); }
.carousel-pause:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Sample story text (the transcript of the narration, WCAG 1.2.1). */
.transcript { margin-top: .75rem; }
.transcript summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ember-dark); }
.transcript-body { max-height: 22rem; overflow-y: auto; padding: .25rem .25rem 0 0; }
.transcript-body p { margin: 0 0 .75rem; }
/* LP2 (2026-11-11): tones list, story types, partner pricing. */
.tones { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
@media (min-width: 620px) { .tones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tones { grid-template-columns: repeat(3, 1fr); } }
.tones li { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; background: var(--card); color: var(--muted); }
.tones b { display: block; color: var(--ink); }
.story { display: flex; flex-direction: column; }
.story-price { margin-top: auto; padding-top: .5rem; font-weight: 700; }
.story-price a { display: inline-block; padding: .6rem 0; }
#partner-pricing .actions { margin-bottom: 0; }
.banner p:last-child { margin-bottom: 0; }
