/* Fala theme (the app's palette: sage paper, deep green, one apricot accent) + page sections. Shared system: landing.css */
:root {
  --bg: #edf0eb;
  --bg-2: #e2ebdd;
  --surface: #f6f8f4;
  --text: #1e2b28;
  --muted: #55625e;
  --line: #dce5dd;
  --accent: #edb27e;
  --on-accent: #1e2b28;
  --accent-text: #1e2b28;
  --h-from: #1e2b28;
  --h-to: #4e7466;
  --deep: #24433d; --deep-2: #2e5049; --sage: #7f9e8d; --sage-3: #a9bfb1; --sage-2: #c9d6cc;
  --apricot: #edb27e; --apricot-soft: #f6e0cb; --mist: #dce5dd; --lilac: #e4dcea;
  --glass: #24433d;
  --glass-line: #24433d;
  --glass-hover: rgba(255, 255, 255, 0.12);
  --menu-bg: rgba(237, 240, 235, 0.9);
  --soon-bg: #24433d;
  --soon-fg: #edf0eb;
  --phone: #1e2b28;
  --focus: #24433d;
  color-scheme: light;
}
::selection { background: var(--apricot); color: var(--text); }

/* Deep green island, like the app's floating tab bar */
.island { color: #edf0eb; }
.island .links a { color: rgba(237, 240, 235, 0.72); }
@media (hover: hover) and (pointer: fine) { .island .links a:hover, .island .links a[aria-current="true"] { color: #edf0eb; } }
.island .cta[aria-disabled="true"] { background: var(--apricot); color: var(--text); }
.burger span { background: #edf0eb; }
.island:not(.solid) { --island-bg: #24433d; --glass-line: rgba(255, 255, 255, 0.1); }
.island .brand img { border-radius: 7px; }

.iphone > .layer.shadow { box-shadow: none; }

/* Hero */
.hero { padding: 168px 0 var(--s-900); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); align-items: center; }
@media (max-width: 900px) { .hero { padding-top: 128px; } .hero-grid { grid-template-columns: 1fr; gap: var(--s-600); } }

/* The breath card: a dot walks the square, the square breathes, the phase counts down */
.breath-card {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 48px; background: var(--deep); color: #edf0eb; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; padding: var(--s-600); container-type: inline-size;
}
.breath-card .label { display: inline-flex; justify-self: start; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: 9999px; background: var(--deep-2); font-size: clamp(12px, 3.2cqw, 14px); line-height: 20px; font-weight: 600; color: var(--sage-2); white-space: nowrap; }
.breath-card .label i { width: 8px; height: 8px; border-radius: 9999px; background: var(--apricot); }
.breath-card .stage { position: relative; display: grid; place-items: center; }
.breath-card .box { position: relative; width: 52cqw; aspect-ratio: 1; }
.breath-card .lung { position: absolute; inset: 0; border-radius: 10%; background: var(--deep-2); transform: scale(0.62); transform-origin: 50% 50%; will-change: transform; }
.breath-card .track { position: absolute; inset: 0; border-radius: 6%; box-shadow: inset 0 0 0 2px #3e625a; }
.breath-card .count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14cqw; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #edf0eb; }
.breath-card .dot { position: absolute; left: 0; top: 0; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border-radius: 9999px; background: var(--apricot); will-change: transform; }
.breath-card .phase { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-200); }
.breath-card .phase b { font-size: clamp(28px, 10cqw, 56px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.breath-card .phase span { font-size: clamp(12px, 3.4cqw, 15px); line-height: 20px; color: var(--sage-3); text-align: right; }
.breath-card .rhythm { display: flex; gap: 6px; margin-top: var(--s-200); }
.breath-card .rhythm i { flex: 1; height: 4px; border-radius: 9999px; background: #3e625a; overflow: hidden; }
.breath-card .rhythm i::after { content: ""; display: block; height: 100%; background: var(--apricot); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
@media (max-width: 480px) { .breath-card { padding: var(--s-400); border-radius: 40px; } }

/* Two ways in: today's breath and the programs */
.ways { margin-top: var(--s-600); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-300); padding: var(--s-500) var(--s-500) 0; border-radius: 40px; background: var(--c); color: var(--text); transition: transform var(--dur) var(--ease); }
.way.dark { color: #edf0eb; }
@media (hover: hover) and (pointer: fine) { .way:hover { transform: translateY(-4px); } }
@media (max-width: 480px) { .way { padding: var(--s-300) var(--s-300) 0; border-radius: 32px; } }
.way-head { display: flex; align-items: center; gap: var(--s-200); }
.way-head h3 { font-size: 36px; line-height: 40px; letter-spacing: -0.03em; }
.way-ic { display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #edf0eb; }
.way.dark .way-ic { background: var(--apricot); color: var(--text); }
.way-ic svg { width: 28px; height: 28px; }
.way-time { display: inline-block; margin-top: var(--s-50); padding: 2px var(--s-100); border-radius: 9999px; background: rgba(30, 43, 40, 0.1); font-size: 14px; line-height: 20px; font-weight: 700; }
.way.dark .way-time { background: rgba(237, 240, 235, 0.14); }
.way-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.way-steps li { display: flex; gap: var(--s-100); align-items: center; font-weight: 600; }
.way-steps span { display: inline-flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: 9999px; background: var(--text); color: #edf0eb; font-size: 14px; font-weight: 700; }
.way.dark .way-steps span { background: var(--apricot); color: var(--text); }
.way-best { font-size: 14px; line-height: 20px; color: rgba(30, 43, 40, 0.72); }
.way.dark .way-best { color: rgba(237, 240, 235, 0.72); }
.way-best b { color: inherit; margin-right: var(--s-50); }
.way-phone { margin-top: auto; height: 300px; display: flex; justify-content: center; clip-path: inset(-120px -120px 0 -120px); }
.way-phone .iphone { --w: 240px; margin-top: var(--s-300); }
@media (hover: hover) and (pointer: fine) { .way.in:hover .way-phone .iphone { transform: translateY(-10px); } }
.way-phone .iphone { transition: transform 1400ms var(--ease); }
@media (max-width: 720px) { .way-phone { height: 270px; } .way-phone .iphone { --w: min(56vw, 230px); } }

/* Prism: one iPhone that turns between the steps */
.prism-scene { height: 340vh; background: var(--bg-2); }
.prism-scene .scene-pin { display: grid; align-items: center; }
.prism-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: center; }
.prism-view { height: var(--view-h, min(78vh, 680px)); perspective: 1600px; display: grid; place-items: center; }
.spin { --w: calc(var(--view-h, min(78vh, 680px)) * 0.46); }
.psteps { display: grid; }
.pstep { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.pstep.on { opacity: 1; transform: none; filter: none; }
.num { display: inline-flex; width: 32px; height: 32px; margin-bottom: var(--s-200); align-items: center; justify-content: center; border-radius: 9999px; background: var(--deep); color: #edf0eb; font-weight: 700; font-size: 14px; }

/* Techniques: rhythm tiles */
.tiles { margin-top: var(--s-600); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { border-radius: 32px; padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-100); min-height: 240px; background: var(--c, var(--surface)); transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-4px) rotate(-1deg); } }
.tile .big { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-bottom: auto; }
.tile h3 { font-size: 22px; line-height: 28px; letter-spacing: -0.02em; margin-top: var(--s-300); }
.tile p { color: rgba(30, 43, 40, 0.72); font-size: 15px; line-height: 22px; }
.tile .tag { align-self: flex-start; padding: 2px var(--s-100); border-radius: 9999px; background: rgba(30, 43, 40, 0.1); font-size: 13px; line-height: 20px; font-weight: 700; }
.tile.dark { background: var(--deep); color: #edf0eb; }
.tile.dark p { color: rgba(237, 240, 235, 0.72); }
.tile.dark .tag { background: var(--apricot); color: var(--text); }

/* Tagline highlighter */
.tagline-band { padding-block: 160px; }
.tagline { line-height: 1.15; }
.tagline .w.hl { position: relative; z-index: 0; }
.tagline .w.hl::before { content: ""; position: absolute; z-index: -1; top: 0.1em; bottom: -0.02em; left: -0.12em; right: -0.18em; border-radius: 0.12em; background: var(--apricot); opacity: 0; transform: scaleX(0.6); transform-origin: 0 50%; transition: opacity 600ms var(--ease), transform 800ms var(--ease); }
.tagline .w.hl.on::before { opacity: 1; transform: none; }
@media (max-width: 640px) { .tagline-band { padding-block: var(--s-900); } }

/* Split sections: text + one iPhone */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-800); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: var(--s-600); } .split.flip > :first-child { order: 0; } }
.split-phone { display: grid; place-items: center; }
.split-phone .iphone { --w: min(300px, 70vw); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-400); }
.chips span { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: 9999px; background: var(--c, var(--surface)); font-weight: 600; font-size: 14px; line-height: 20px; }
.chips svg { width: 16px; height: 16px; }
.chips .dark { background: var(--deep); color: #edf0eb; }
.facts { margin: var(--s-400) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-200); }
.facts li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-200); align-items: start; }
.facts li > span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--deep); color: var(--apricot); }
.facts li > span svg { width: 20px; height: 20px; }
.facts b { display: block; font-size: 17px; line-height: 24px; }
.facts p { color: var(--muted); font-size: 15px; line-height: 22px; }

/* Pricing */
.plans { margin: var(--s-600) auto 0; max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-300); }
.plan { border-radius: 32px; padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-200); text-align: left; background: var(--surface); }
.plan.plus { background: var(--deep); color: #edf0eb; }
.plan .price { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.plan li { display: flex; gap: var(--s-75); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.plan.plus li svg { color: var(--apricot); }
.plan .note { font-size: 14px; line-height: 20px; color: rgba(237, 240, 235, 0.72); }

/* Final */
.final { background: var(--deep); color: #edf0eb; border-radius: 48px; padding: var(--s-900) var(--s-400); text-align: center; }
.final .hero-title { margin-inline: auto; --h-from: #edf0eb; --h-to: #a9bfb1; }
.final .lead { margin-inline: auto; color: rgba(237, 240, 235, 0.72); }
.final .cta-row { justify-content: center; }
.final .btn[aria-disabled="true"] { background: var(--apricot); color: var(--text); }
@media (max-width: 480px) { .final { padding: var(--s-700) var(--s-300); border-radius: 32px; } .final .hero-title { font-size: 30px; line-height: 36px; } }

.hero-title { padding-bottom: .16em; }

@media (prefers-reduced-motion: reduce) { .tile, .way { transition: none; } }

/* ===== Phones, portrait and landscape: their own layout (system in landing.css) ===== */
@media (max-width: 720px), (pointer: coarse) and (max-height: 540px) {
  .hero { padding: calc(var(--s-900) + 24px) 0 var(--s-700); }
  .breath-card { width: min(100%, calc(var(--m-room) * 0.62)); justify-self: center; }
  .plans { grid-template-columns: 1fr; gap: var(--s-200); margin-top: var(--s-400); }
  .plan { padding: var(--s-300); border-radius: 28px; }
  .plan .price { font-size: 36px; line-height: 40px; }
  .way-steps li { font-size: 14px; line-height: 20px; }
  .tiles { gap: var(--s-150, 12px); margin-top: var(--s-400); }
  .tile { min-height: 0; padding: var(--s-300); border-radius: 24px; }
  .tile .big { font-size: 34px; }
  .tile h3 { font-size: 18px; line-height: 24px; margin-top: var(--s-200); }
  .tile p { font-size: 13px; line-height: 18px; }
  .how-m { background: var(--bg-2); }
  .how-m h2.title { font-size: 30px; line-height: 36px; }
  .how-m .m-dots { --dot: var(--deep); }
  .how-m-grid { display: grid; gap: var(--s-300); justify-items: center; text-align: center; }
  .how-m .m-vis { perspective: 1400px; }
  .how-m .m-vis .iphone { --w: calc(min(46svh, 420px) * 0.48); }
  .how-m .m-car { width: 100%; }
  .how-m .m-txt > * { max-width: 520px; margin-inline: auto; }
  .how-m .lead { margin-top: var(--s-100); }
  .split-phone .iphone { --w: calc(min(52svh, 460px) * 0.48); }
}
@media (max-width: 720px) and (orientation: landscape), (pointer: coarse) and (max-height: 540px) and (orientation: landscape) {
  .hero { padding-top: var(--s-600); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-400); }
  .hero .hero-title { font-size: 30px; line-height: 36px; }
  .hero .lead { font-size: 14px; line-height: 20px; margin-top: var(--s-100); }
  .hero .cta-row { margin-top: var(--s-200); }
  .hero .proof { display: none; }
  .breath-card { width: calc(var(--m-room) - var(--s-600)); padding: var(--s-300); border-radius: 32px; }
  .ways, .plans, .split, .split.flip { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .way-head h3 { font-size: 24px; line-height: 32px; }
  .way-phone { height: 200px; }
  .way-phone .iphone { --w: 160px; }
  .how-m-grid { grid-template-columns: auto minmax(0, 1fr); align-items: center; text-align: left; gap: var(--s-400); padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) 0; }
  .how-m .m-vis .iphone { --w: calc((var(--m-room) - var(--s-600)) * 0.48); }
  .how-m .m-dots { justify-content: flex-start; padding-left: var(--gutter); }
  .how-m .m-txt > * { margin-inline: 0; }
  .split-phone .iphone { --w: calc((var(--m-room) - var(--s-600)) * 0.48); }
}

/* The film: desktop shows it in a card beside its copy; phones open the page with it (film-intro) */
.film-intro { --film-bg: #24433d; --film-fg: #edf0eb; }
@media (orientation: landscape) { .film-intro video { object-fit: contain; } }
.film-band { background: #24433d; color: #edf0eb; padding: var(--s-900) 0; }
.film-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "copy film chap";
  gap: var(--s-700); align-items: center; }
.film-copy { grid-area: copy; }
.film-band .eyebrow { color: var(--apricot); }
.film-band .title { color: #edf0eb; }
.film-band .lead { color: rgba(237, 240, 235, 0.72); max-width: 440px; }
.film-card { grid-area: film; --h: min(78vh, 760px); height: var(--h); width: calc(var(--h) * 9 / 16); border-radius: 40px; overflow: hidden;
  background: #24433d; box-shadow: 0 0 0 1px rgba(237, 240, 235, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.45); }
.film-card video { display: block; width: 100%; height: 100%; object-fit: cover; }
.chapters { grid-area: chap; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.chapter { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-200); align-items: start; width: 100%;
  padding: var(--s-200); border: 0; border-radius: 24px; background: transparent; color: rgba(237, 240, 235, 0.62); text-align: left;
  font: inherit; cursor: pointer; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .chapter:hover { color: #edf0eb; } }
.chapter.on { background: rgba(237, 240, 235, 0.07); color: #edf0eb; }
.chapter .ic { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 9999px;
  background: rgba(237, 240, 235, 0.08); color: #edf0eb; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.chapter .ic svg { width: 22px; height: 22px; }
.chapter.on .ic { background: var(--apricot); color: var(--text); }
.chapter .txt { display: grid; gap: var(--s-25); }
.chapter .txt b { font-size: 18px; line-height: 24px; font-weight: 700; }
.chapter .txt span { font-size: 14px; line-height: 20px; }
.chapter .bar { grid-column: 2; height: 3px; border-radius: 3px; background: rgba(237, 240, 235, 0.12); overflow: hidden; }
.chapter .bar::after { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--apricot); }
@media (max-width: 1180px) {
  .film-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy film" "chap film"; row-gap: var(--s-400); align-items: start; }
  .film-copy { align-self: end; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .chapters li:first-child { grid-column: 1 / -1; }
  .chapter { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-100); padding: var(--s-100) var(--s-200) var(--s-200); }
  .chapter .ic { width: 40px; height: 40px; }
  .chapter .txt span { font-size: 13px; line-height: 18px; }
}
