/* Home page only: bands taking turns, red accents, dimension lines. Shared pieces stay in app.css.
   Logical properties only; motion only for visitors who have not asked for less (tests/landing-static.test.js). */

.lp {
  --lp-bg: var(--raised);
  --lp-tint: var(--paper);
  --lp-dark: #16171b;
  --lp-dark-2: #22242a;
  --lp-dark-line: #2c2e35;
  --lp-dark-text: #b9bcc4;
  --lp-red-soft: color-mix(in srgb, var(--accent) 8%, var(--lp-bg));
  --lp-soft: color-mix(in srgb, var(--paper) 70%, #d9e6ee);   /* a cool blue-grey band */
  --lp-radius: 22px;
  --lp-shadow: 0 40px 80px -50px rgb(29 31 35 / 0.55);
  background: var(--lp-bg);
}
.lp-wrap { inline-size: 100%; max-inline-size: 80rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.lp-narrow { max-inline-size: 52rem; }
.lp-section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.lp-tint { background: var(--lp-tint); border-block: 1px solid var(--line); }
.lp-soft { background: var(--lp-soft); }
.lp h2 em, .lp .lp-row h3 em { color: var(--accent); font-style: normal; }
.lp .lp-dark h2 em { color: #ff8a8f; }
.lp-center { margin-inline: auto; text-align: center; }
.lp-center-head { display: grid; justify-items: center; gap: 0.75rem; max-inline-size: 48rem; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); text-align: center; }
.lp-center-head h2 { margin-block-end: 0; }
.lp .btn { border-radius: 999px; }
.lp-dark { background: var(--lp-dark); color: #f2f3f5; }
.lp .lp-dark p { color: var(--lp-dark-text); }

.lp h1, .lp h2, .lp .lp-row h3 { font-weight: 820; letter-spacing: -0.035em; line-height: 1.05; }
.lp h2 { margin-block-end: 1.5rem; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); max-inline-size: 52rem; }
.lp h3 { font-size: 1.15rem; line-height: 1.25; }
:lang(ar) .lp h1, :lang(ar) .lp h2, :lang(ar) .lp .lp-row h3, :lang(ja) .lp h1, :lang(ja) .lp h2, :lang(ja) .lp .lp-row h3, :lang(zh) .lp h1, :lang(zh) .lp h2, :lang(zh) .lp .lp-row h3 { letter-spacing: 0; line-height: 1.3; }
.lp p { color: var(--muted); }
/* the eyebrow carries a dimension line */
.lp .lp-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-block-end: 0.8rem; color: var(--accent); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.lp .lp-eyebrow::before { content: ""; flex: none; inline-size: 3.5rem; block-size: 0.6rem; border-inline: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.lp .lp-dark .lp-eyebrow { color: #ff8a8f; }
:lang(ar) .lp-eyebrow, :lang(ja) .lp-eyebrow, :lang(zh) .lp-eyebrow { letter-spacing: 0; }
.lp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-block-end: clamp(1.5rem, 3vw, 2.25rem); }
.lp-head h2 { margin-block-end: 0; }
.lp-head > p { max-inline-size: 24rem; }
.lp .lp-note { margin-block: 1rem 0; font-size: 0.9rem; }
.lp-small { font-size: 0.92rem; }
.lp-scroll { overflow-x: auto; }

.lp-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); background-color: var(--lp-bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.lp-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 64em) { .lp-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 63.99em) {
  .lp-hero-grid { gap: 1.1rem; }
  .lp-hero .lp-hero-copy { display: contents; }
  .lp-hero-copy > * { order: 2; }
  .lp-hero-copy > .lp-eyebrow, .lp-hero-copy > h1, .lp-hero-copy > .lp-actions-top { order: 0; }
  .lp-window { order: 1; margin-block: 0.4rem 0.6rem; }
}
.lp-hero-copy { display: grid; gap: 1.1rem; }
.lp-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.9rem); }
.lp-hero h1 span, .lp-hero h1 em { display: block; }
.lp-hero h1 em { color: var(--accent); font-style: normal; }
.lp .lp-lede { max-inline-size: 34rem; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem); }
.lp-points { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.lp-points li { display: flex; gap: 0.75rem; align-items: center; }
.lp-pin { display: grid; place-items: center; flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background: var(--accent-fill); color: #ffffff; font-size: 0.85rem; font-weight: 800; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
/* phones: two equal buttons under the heading; signed in (html[data-signed], landing.js): only "New plan" */
.lp-actions-top { display: none; }
@media (max-width: 40em) {
  .lp-actions-top { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch; gap: 0.5rem; }
  .lp-actions-top .btn { min-block-size: 44px; padding: 0.4rem 0.5rem; font-size: 0.95rem; }
  .lp-hero-copy > .lp-actions:not(.lp-actions-top) { display: none; }
  [data-signed] .lp-actions-top .btn-secondary { display: none; }
  .lp-hero { padding-block: 1.25rem 2rem; }
  .lp-hero-grid { gap: 0.75rem; }
  .lp-window { margin-block: 0; }
}
.lp-quiet { font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.25em; }

.lp-window { position: relative; border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--lp-bg); box-shadow: var(--lp-shadow); }
.lp-window-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; border-block-end: 1px solid var(--line); border-start-start-radius: var(--lp-radius); border-start-end-radius: var(--lp-radius); background: var(--lp-tint); font-size: 0.8rem; }
.lp-window-bar span { inline-size: 0.6rem; block-size: 0.6rem; border-radius: 50%; background: var(--line); }
.lp-window-bar b { margin-inline-start: 0.6rem; color: var(--muted); font-weight: 600; }
.lp-window-body { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); overflow: hidden; border-end-start-radius: var(--lp-radius); border-end-end-radius: var(--lp-radius); }
.lp-rail { display: grid; align-content: start; gap: 0.4rem; padding: 0.6rem 0.45rem; border-inline-end: 1px solid var(--line); }
.lp-rail-btn { display: grid; place-items: center; inline-size: 100%; block-size: 2.4rem; padding: 0; border: 1px solid transparent; border-radius: 10px; background: var(--lp-tint); color: var(--muted); cursor: pointer; }
.lp-rail-btn svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-rail-btn:hover { border-color: var(--accent); color: var(--accent); }
.lp-rail-btn[aria-pressed="true"] { background: var(--accent-fill); color: #ffffff; }
.lp-window-stage { position: relative; margin: 0; }
.lp-window-stage video { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #ffffff; }
.lp .lp-window-cap { position: absolute; inset-block-end: 0.75rem; inset-inline: 0.75rem 4.25rem; display: flex; align-items: center; min-block-size: 44px; margin: 0; padding: 0.55rem 1rem; border-radius: 12px; background: rgb(14 17 22 / 0.72); color: #ffffff; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 750; line-height: 1.25; backdrop-filter: blur(6px); }
.lp-window-cap [hidden] { display: none; }
/* a picture that changes: layers of one cell (landing.js), hidden ones transparent, so they cross-fade */
.lp-window-stage, .lp-options, .lp-story-stage, .lp-pain-view, .lp-tour-view, .lp-pane { display: grid; }
.lp-layer { grid-area: 1 / 1; }
.lp-layer[hidden] { display: block; visibility: hidden; opacity: 0; }
.lp-pane[hidden] { display: grid; }
.lp-layer.lp-prep[hidden] { visibility: visible; pointer-events: none; }
.lp-story-clip:not([hidden]), .lp-pain-fig:not([hidden]) { display: flex; flex-direction: column; }
.lp-story-cap, .lp-pain-fig figcaption { flex: 1; }
.lp-tour-view [hidden]:not(.lp-layer) { display: none; }
/* the line under the button of what plays fills as it plays (--p, landing.js) */
.lp-rail-btn, .lp-step { position: relative; }
.lp-rail-btn::after, .lp-step::after { content: ""; position: absolute; inset-inline: 22%; inset-block-end: 4px; block-size: 3px; border-radius: 2px; background: currentColor; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; }
.lp-step::after { inset-inline: 14%; background: var(--accent-fill); }
:is(.lp-rail-btn, .lp-step):dir(rtl)::after { transform-origin: 100% 50%; }
:is(.lp-rail-btn, .lp-step)[aria-pressed="true"]::after { opacity: 0.9; }
@media (max-width: 40em) {
  .lp-window-bar { display: none; }
  .lp-window-body { grid-template-columns: minmax(0, 1fr); border-radius: var(--lp-radius); }
  .lp-rail { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0.4rem; border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .lp .lp-window-cap { font-size: 0.95rem; }
}

.lp-pause { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 50%; background: rgb(14 17 22 / 0.55); color: #ffffff; cursor: pointer; }
.lp-pause .play-icon, .lp-pause.is-paused .pause-icon { display: none; }
.lp-pause.is-paused .play-icon { display: block; }
.lp-clip-pause { position: absolute; z-index: 1; inset-block-end: 0.75rem; inset-inline-end: 0.75rem; }

/* Pains: the list beside the picture; on phones a row of numbers over one card (landing.js puts the chosen words on its top) */
.lp-pains { display: grid; gap: 0.6rem; }
.lp-pain-list { display: grid; gap: 0.6rem; align-content: start; }
.lp-pain-cap { display: none; }
@media (min-width: 56em) {
  .lp-pains { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; }
}
.lp-pain { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem; border: 1.5px solid var(--lp-dark-line); border-radius: 16px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.lp-pain b { display: block; font-size: 1.12rem; }
.lp-pain span span { color: var(--lp-dark-text); font-size: 0.95rem; }
.lp-pain-n { flex: none; color: #5a5e68; font-size: 1.8rem; font-weight: 850; line-height: 1; }
.lp-pain:hover, .lp-pain[aria-selected="true"] { border-color: var(--accent-fill); background: var(--lp-dark-2); }
.lp-pain[aria-selected="true"] .lp-pain-n { color: #ff8a8f; }
.lp-pain-view { position: relative; overflow: hidden; border: 1px solid var(--lp-dark-line); border-radius: var(--lp-radius); }
.lp-pain-fig { margin: 0; }
.lp-pain-fig video, .lp-pain-fig img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #ffffff; }
.lp-pain-fig figcaption { padding: 1rem 1.25rem; background: var(--lp-dark-2); color: #f2f3f5; }
.lp-pain-fig figcaption b { display: block; color: #ff8a8f; }
@media (max-width: 55.99em) {
  .lp-pain-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.25rem; }
  .lp-pain { justify-content: center; align-items: center; min-block-size: 44px; padding: 0; border-radius: 12px; }
  .lp-pain > span:last-child { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .lp-pain-n { color: var(--lp-dark-text); font-size: 1rem; }
  .lp-pain[aria-selected="true"] { border-color: var(--accent-fill); background: var(--accent-fill); }
  .lp-pain[aria-selected="true"] .lp-pain-n { color: #ffffff; }
  .lp-pain-cap { display: block; grid-row: 1; padding: 1.1rem 1.25rem; background: var(--lp-dark-2); }
  .lp-pain-fig { grid-row: 2; }
  .lp-pain-fig figcaption { padding-block-end: 3.5rem; }
  .lp-pain-cap b { display: block; font-size: 1.3rem; line-height: 1.25; }
  .lp-pain-cap span { color: var(--lp-dark-text); }
}


/* Split: words and media side by side */
.lp-split { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56em) {
  .lp-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .lp-split-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.lp-copy { display: grid; gap: 1rem; }
.lp-copy h2 { margin-block-end: 0; }
.lp-copy > p { font-size: 1.08rem; }
.lp-media { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--lp-bg); box-shadow: var(--lp-shadow); }
.lp-dark .lp-media { border-color: var(--lp-dark-line); background: var(--lp-dark); }
.lp-media img { display: block; inline-size: 100%; block-size: auto; }
.lp-video { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }

.lp-opt-video { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.lp-opt-bar { position: absolute; inset-block-start: 1rem; inset-inline: 0; display: flex; justify-content: center; gap: 0.35rem; inline-size: max-content; margin-inline: auto; padding: 0.35rem; border-radius: 999px; background: rgb(255 255 255 / 0.95); box-shadow: 0 10px 24px rgb(0 0 0 / 0.22); }
.lp-opt { min-block-size: 44px; padding-inline: 1.25rem; border: 0; border-radius: 999px; background: transparent; color: #1d1f23; font: inherit; font-weight: 750; cursor: pointer; }
.lp-opt[aria-pressed="true"] { background: var(--accent-fill); color: #ffffff; }
@media (max-width: 40em) {
  .lp-opt-bar { position: static; grid-row: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); inline-size: auto; margin: 0.5rem; padding: 0; box-shadow: none; }
  .lp-opt { padding-inline: 0; }
  .lp-options > :not(.lp-opt-bar) { grid-row: 2; }
}

.lp-day { display: grid; gap: 0.75rem; }
.lp-arc { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.lp-arc-path { fill: none; stroke: url(#arc-sky); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.lp-sun-dot { fill: #f6b44b; stroke: #ffffff; stroke-width: 4; filter: drop-shadow(0 4px 10px rgb(232 97 60 / 0.5)); }
.lp-day-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; margin: -0.5rem 0 0; padding: 0; list-style: none; }
.lp-step { display: grid; justify-items: center; gap: 0.15rem; inline-size: 100%; min-block-size: 44px; padding: 0.6rem 0.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--lp-bg); color: inherit; font: inherit; text-align: center; cursor: pointer; }
.lp-step time { color: var(--muted); font-size: 0.8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.lp-step b { font-size: 0.92rem; line-height: 1.2; }
.lp-step[aria-pressed="true"] { border: 2px solid var(--accent-fill); box-shadow: 0 10px 24px -14px rgb(198 40 40 / 0.6); }
.lp-step[aria-pressed="true"] time { color: var(--accent); }
@media (max-width: 40em) { .lp-step b { display: none; } }
.lp-story-stage { position: relative; margin: 0; overflow: hidden; border-radius: var(--lp-radius); background: #0d0e11; box-shadow: var(--lp-shadow); }
.lp-story-clip { position: relative; }
.lp-story-clip video { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lp .lp-story-cap { position: absolute; inset-inline: 1rem; inset-block-end: 1rem; max-inline-size: 30rem; margin: 0; padding: 0.85rem 1rem; border-radius: 14px; background: rgb(255 255 255 / 0.95); color: #3d424b; box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.4); }
.lp-story-cap time { color: var(--accent); font-weight: 800; }
.lp-story-cap b { color: #1d1f23; }
.lp-story-cap span { display: block; margin-block-start: 0.2rem; }
@media (max-width: 40em) { .lp .lp-story-cap { position: static; max-inline-size: none; border-radius: 0; } }

/* The tour: a list of tools, the chosen one's clip beside it */
.lp-tour { display: grid; gap: 1.25rem; }
/* side by side, the picture sets the height and the list scrolls inside it */
@media (min-width: 60em) {
  .lp-tour { grid-template-columns: 18rem minmax(0, 1fr); align-items: stretch; }
  .lp-tour-list { grid-auto-rows: max-content; block-size: 0; min-block-size: 100%; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 0.35rem; scrollbar-width: thin; }
}
.lp-tour-list { display: grid; gap: 0.35rem; align-content: start; }
.lp-tool { display: flex; gap: 0.75rem; align-items: center; min-block-size: 44px; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--lp-bg); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.lp-tool b { display: block; font-size: 0.95rem; }
.lp-tool small { color: var(--muted); font-size: 0.8rem; }
.lp-tool-text { display: none; }
.lp-tool-n { display: grid; place-items: center; flex: none; inline-size: 1.9rem; block-size: 1.9rem; border-radius: 9px; background: var(--lp-tint); color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.lp-tool:hover { border-color: var(--accent); }
.lp-tool[aria-selected="true"] { border: 2px solid var(--accent-fill); background: var(--lp-red-soft); }
.lp-tool[aria-selected="true"] .lp-tool-n { background: var(--accent-fill); color: #ffffff; }
.lp-tour-view { position: relative; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--lp-tint); box-shadow: var(--lp-shadow); }
.lp-tour-view video, .lp-tour-img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.lp .lp-tour-cap { position: absolute; inset-inline: 1rem; inset-block-end: 1rem; max-inline-size: 34rem; padding: 0.8rem 1rem; border-radius: 14px; background: rgb(255 255 255 / 0.95); color: #3d424b; box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.4); }
.lp-tour-cap b { display: block; color: #1d1f23; }
@media (max-width: 60em) {
  .lp-tour-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-block-end: 0.25rem; }
  .lp-tool small { display: none; }
  .lp .lp-tour-cap { position: static; max-inline-size: none; border-radius: 0; box-shadow: none; }
}

.lp-pane { position: relative; }
.lp-pane-tabs { position: absolute; z-index: 2; inset-block-start: 0.9rem; inset-inline: 0; display: flex; justify-content: center; gap: 0.3rem; inline-size: max-content; margin-inline: auto; padding: 0.3rem; border-radius: 999px; background: rgb(255 255 255 / 0.95); box-shadow: 0 10px 24px rgb(0 0 0 / 0.22); }
.lp-pane-tab { min-block-size: 40px; padding-inline: 1rem; border: 0; border-radius: 999px; background: transparent; color: #1d1f23; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.lp-pane-tab[aria-pressed="true"] { background: var(--accent-fill); color: #ffffff; }
.lp-pane-show { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0e11; }
.lp-pane-show .lp-gal-btn { opacity: 0; }
/* a slideshow's time to the next picture */
.lp-progress { position: absolute; z-index: 2; inset-block-start: 0; inset-inline: 0; block-size: 4px; background: rgb(255 255 255 / 0.35); pointer-events: none; }
.lp-progress i { display: block; block-size: 100%; inline-size: 100%; background: var(--accent-fill); transform-origin: 0 50%; transform: scaleX(0); }
.lp-progress:dir(rtl) i { transform-origin: 100% 50%; }
.lp-progress.is-paused i { animation-play-state: paused; }
@keyframes lp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lp-pane-show:hover .lp-gal-btn, .lp-pane-show:focus-within .lp-gal-btn { opacity: 1; }
.lp-pane-video { aspect-ratio: 16 / 10; }

.lp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lp .lp-chips span { padding: 0.25rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; color: inherit; font-size: 0.85rem; font-weight: 600; }
.lp .lp-dark .lp-chips span { border-color: #3a3d45; color: #f2f3f5; }


.lp-slide { position: relative; overflow: hidden; margin-block-end: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--lp-radius); background: #ffffff; box-shadow: var(--lp-shadow); }
.lp-slide img { display: block; inline-size: 100%; block-size: auto; }
.lp-slide .lp-slide-2d { position: absolute; inset: 0; block-size: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.lp-slide:dir(rtl) .lp-slide-2d { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.lp-slide-handle { position: absolute; inset-block: 0; inset-inline-start: var(--pos); inline-size: 3px; margin-inline-start: -1.5px; background: #ffffff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); pointer-events: none; }
.lp-slide-handle::after { content: "⟷"; position: absolute; inset-block-start: 50%; inset-inline-start: 50%; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; margin-block-start: -1.375rem; margin-inline-start: -1.375rem; border-radius: 50%; background: #ffffff; color: var(--accent); font-weight: 800; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }
.lp-slide-range { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.lp-slide-range:focus-visible ~ .lp-slide-handle, .lp-slide:has(.lp-slide-range:focus-visible) .lp-slide-handle::after { outline: 3px solid var(--accent); }
.lp-badge { position: absolute; z-index: 1; padding: 0.35rem 0.8rem; border-radius: 999px; background: #ffffff; color: #1d1f23; font-size: 0.8rem; font-weight: 700; box-shadow: 0 6px 16px rgb(0 0 0 / 0.14); pointer-events: none; }
.lp-badge-start { inset-block-start: 0.9rem; inset-inline-start: 0.9rem; }
.lp-slide-tabs { display: flex; justify-content: center; gap: 0.3rem; inline-size: max-content; max-inline-size: 100%; margin: 0 auto 1rem; padding: 0.3rem; overflow-x: auto; border-radius: 999px; background: rgb(255 255 255 / 0.95); box-shadow: 0 10px 24px rgb(0 0 0 / 0.22); }
.lp a.lp-slide-go { position: absolute; z-index: 2; inset-block-start: 0.9rem; inset-inline-start: 50%; translate: -50% 0; min-block-size: 48px; padding-inline: 1.4rem; font-size: 1.05rem; box-shadow: 0 10px 26px rgb(198 40 40 / 0.45); }
.lp a.lp-slide-go:dir(rtl) { translate: 50% 0; }
@media (max-width: 40em) { .lp a.lp-slide-go { inset-block-start: auto; inset-block-end: 0.75rem; font-size: 0.95rem; } }

.lp-gallery { margin-block-start: clamp(1.5rem, 4vw, 2.5rem); }
.lp-gallery-stage { position: relative; overflow: hidden; border-radius: var(--lp-radius); background: #0d0e11; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px #000000; }
.lp-shot { position: absolute; inset: 0; margin: 0; }
.lp-shot[hidden] { display: block; visibility: hidden; opacity: 0; }
.lp-shot img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.lp-shot figcaption { position: absolute; inset-block-end: 1rem; inset-inline-start: 1rem; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgb(14 17 22 / 0.7); color: #ffffff; font-size: 0.9rem; font-weight: 650; }
.lp-gal-btn { position: absolute; inset-block-start: 50%; display: grid; place-items: center; inline-size: 44px; block-size: 44px; margin-block-start: -22px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.9); color: #1d1f23; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lp-gal-prev { inset-inline-start: 1rem; }
.lp-gal-next { inset-inline-end: 1rem; }
.lp-gal-prev:dir(rtl), .lp-gal-next:dir(rtl) { transform: scaleX(-1); }
.lp-dots { display: flex; justify-content: center; gap: 0.25rem; margin-block-start: 0.75rem; }
.lp-dot { inline-size: 44px; block-size: 44px; border: 0; background: none; cursor: pointer; }
.lp-dot::before { content: ""; display: block; inline-size: 10px; block-size: 10px; margin: auto; border-radius: 50%; background: #5a5e68; }
.lp-dot[aria-current="true"]::before { background: #ff8a8f; inline-size: 26px; border-radius: 6px; }

/* No monthly fee: the four lines of the three cards line up (subgrid) */
.lp-not-grid { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 56em) {
  .lp-not-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); }
  .lp-not-grid li { grid-row: span 4; grid-template-rows: subgrid; }
}
.lp-not-grid li { display: grid; align-content: start; justify-items: center; gap: 0.5rem; padding: 1.75rem 1.5rem; border-radius: var(--lp-radius); background: var(--lp-bg); text-align: center; box-shadow: 0 18px 40px -30px rgb(0 0 0 / 0.5); }
.lp .lp-not-grid s { color: var(--muted); font-size: 1.2rem; font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.lp-not-grid b { color: var(--accent); font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.9rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.05; }
.lp-not-grid strong { font-size: 1.1rem; }
.lp .lp-not-grid span { color: var(--muted); font-size: 0.97rem; }

/* the button sits as far below the cards as the section's own padding leaves under it (same clamp as .lp-section) */
.lp-not-go { margin: clamp(3.5rem, 8vw, 5.5rem) 0 0; }

.lp-suncard { position: absolute; inset-block-start: 0.9rem; inset-inline-start: 0.9rem; display: grid; gap: 0.35rem; padding: 0.7rem 0.85rem; border-radius: 14px; background: rgb(255 255 255 / 0.95); color: #1d1f23; box-shadow: 0 10px 26px rgb(0 0 0 / 0.25); }
.lp-suncard span { display: grid; }
.lp-suncard small { color: #6b7079; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-suncard b { font-size: 0.85rem; }
@media (max-width: 40em) { .lp-suncard { display: none; } }

.lp-rows { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.lp-row { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--lp-soft); }
@media (min-width: 56em) {
  .lp-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .lp-row-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .lp-row-flip .lp-row-media { order: 2; }
}
.lp .lp-row h3 { margin-block: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.lp-flow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lp .lp-flow span { padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--lp-bg); color: var(--ink); font-size: 0.88rem; font-weight: 650; }
.lp .lp-flow span:last-child { border-color: var(--accent-fill); background: var(--accent-fill); color: #ffffff; }
.btn-on-dark-2 { background: #ffffff; color: #16171b; }

/* Comparison and price tables */
.compare, .lp-price-table { inline-size: 100%; min-inline-size: 44rem; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--lp-bg); font-size: 0.95rem; }
.compare th, .compare td, .lp-price-table th, .lp-price-table td { padding: 0.8rem 1rem; border-block-end: 1px solid var(--line); text-align: start; vertical-align: middle; }
.compare tbody tr:last-child > *, .lp-price-table tfoot td { border-block-end: 0; }
.compare tbody th, .lp-price-table tbody th { font-weight: 650; }
.compare td { color: var(--muted); }
.compare .compare-us { background: var(--lp-red-soft); color: var(--ink); font-weight: 700; }
.compare thead .compare-us { background: var(--accent-fill); color: #ffffff; }
.lp-price-table thead th { text-align: center; }
.lp-price-table thead b { display: block; font-size: 1.05rem; }
.lp-cost { display: block; font-size: 2.3rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1.15; }
.lp-price-table thead small { color: var(--muted); }
.lp-price-table td { text-align: center; }
.lp-price-table .lp-main { background: var(--lp-red-soft); font-weight: 650; }
.lp-price-table thead .lp-main { border-block-start: 4px solid var(--accent-fill); }
.lp-price-table tfoot .btn { inline-size: 100%; padding-inline: 0.5rem; font-size: 0.88rem; }
.lp-yes { color: #1b7a3a; font-weight: 800; }
.lp-no { color: var(--muted); }
/* Price section: five columns (data-bill on the section: Yearly or Monthly for Plus and Pro) and, on phones, cards of the same plans */
.lp-price-table { table-layout: fixed; }
.lp-price-table tbody th { inline-size: 24%; }
.lp-price-table thead .lp-cost { font-size: 1.9rem; }
.lp-open { display: inline-block; margin-inline-start: 0.25rem; padding: 0 0.5rem; border-radius: 99px; background: #e6f4ea; color: #1b7a3a; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
[data-bill="year"] .lp-m, [data-bill="month"] .lp-y { display: none; }
.lp-bill { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem 0.75rem; margin-block-end: 0.75rem; }
.lp-bill[hidden] { display: none; }
.lp-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
.lp-seg button { min-block-size: 44px; padding-inline: 1rem; border: 0; border-radius: 99px; background: none; color: var(--ink); font: inherit; font-size: 0.92rem; cursor: pointer; }
.lp-seg [aria-pressed="true"] { background: var(--lp-bg); box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); font-weight: 650; }
.lp-cards { display: none; }
.lp-lab { margin: 0.5rem 0 0; font-size: 0.85rem; font-weight: 700; }
.lp-card { padding: 0.9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--lp-bg); }
.lp-lead { border: 2px solid var(--accent-fill); }
.lp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.6rem; align-items: start; }
.lp-top b { font-size: 1.05rem; }
.lp-sum { text-align: end; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.lp-top small { color: var(--muted); }
.lp-per { grid-column: 2; text-align: end; font-size: 0.78rem; font-weight: 600; }
.lp-card details { margin-block-start: 0.6rem; border-block-start: 1px solid var(--line); }
.lp-card summary { display: flex; align-items: center; justify-content: space-between; min-block-size: 44px; font-weight: 700; cursor: pointer; list-style: none; }
.lp-card summary::-webkit-details-marker { display: none; }
.lp-card summary::after { content: "▾"; color: var(--muted); }
.lp-card [open] summary::after { content: "▴"; }
.lp-card ul { margin: 0 0 0.5rem; padding: 0; list-style: none; font-size: 0.93rem; }
.lp-card li { padding-block: 3px; color: var(--muted); }
.lp-card li::before { content: "✓ "; color: #1b7a3a; font-weight: 800; }
.lp-card .lp-x::before { content: "— "; color: var(--muted); }
.lp-card .btn { inline-size: 100%; margin-block-start: 0.6rem; }
.lp-try { margin: 0.5rem 0 0; text-align: center; }
.lp-try a { display: inline-block; padding-block: 0.7rem; color: var(--ink); font-weight: 700; }
@media (max-width: 55.99em) { .lp-wide { display: none; } .lp-cards { display: grid; gap: 0.75rem; } .lp-bill { justify-content: flex-start; } }
@media (prefers-color-scheme: dark) { .lp-open { background: #1f3a29; color: #7fd69a; } .lp-yes, .lp-card li::before { color: #7fd69a; } }
/* phones: the comparison shows one column at a time (landing.js makes the buttons and marks the column .lp-on) */
.lp-picks { display: none; }
@media (max-width: 55.99em) {
  .lp-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; margin-block: 0.75rem; }
  .lp-pk:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lp-pk { min-block-size: 44px; padding-inline: 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--lp-bg); color: inherit; font: inherit; font-weight: 650; cursor: pointer; }
  .lp-pk[aria-pressed="true"] { border-color: var(--accent-fill); background: var(--accent-fill); color: #ffffff; }
  .lp-pick { min-inline-size: 0; }
  .lp-pick :is(th, td) { padding-inline: 0.7rem; }
  .compare.lp-pick :is(th, td):nth-child(n+3):not(.lp-on) { display: none; }
}
.lp .lp-lede-left { max-inline-size: 46rem; margin-block-end: 1.5rem; font-size: 1.08rem; }

.lp-closing { padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); text-align: center; background-color: var(--accent-fill); background-image: linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px); background-size: 32px 32px; color: #ffffff; }
.lp-closing h2 { max-inline-size: 46rem; margin-inline: auto; }
.lp .lp-closing p { max-inline-size: 36rem; margin: 1rem auto 1.5rem; color: #ffe3e3; font-size: 1.08rem; }
.lp-closing .lp-actions { justify-content: center; }
.btn-light { border-color: #ffffff; background: #ffffff; color: var(--accent-deep); }
.btn-light:hover { background: #fff3f3; color: var(--accent-deep); }

@media (prefers-reduced-motion: no-preference) {
  .lp-pain, .lp-tool, .lp-step i, .lp-rail-btn { transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
  .lp-slide-handle::after { animation: lp-nudge 1.6s ease-in-out 1s 2; }
  .lp-progress i { animation: lp-fill var(--ms, 3000ms) linear forwards; }
  .lp-layer { transition: opacity 0.4s ease, visibility 0.4s; }
  .lp-shot { transition: opacity 0.9s ease, visibility 0.9s; }
  .lp-rail-btn::after, .lp-step::after { transition: transform 0.3s linear, opacity 0.2s; }
}
@keyframes lp-nudge { 30% { translate: -10px 0; } 70% { translate: 10px 0; } }
