/* Livin+ feature pages. Same Dusk Glass tokens as the home page (index.html) and the same anti-slop rules
   (livinos-core/docs/ANTISLOP.md): Inter/SF, solid surfaces, aqua only for the primary action and selected state,
   two-line headlines (SemiBold, then Light) as the one identity motif. Dials: ENERGY 2 / RHYTHM 3 / MOTION 1.
   Each page varies its rhythm: hero, a one-line statement, alternating splits, a wide shot, facts, closing CTA. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --bg: #11131B; --bg2: #161923; --card: #1C1E28; --line: rgba(255,255,255,.10);
  --ink: #F4F5F8; --ink2: #B4B8C4; --ink3: #8C90A0;
  --aqua: #5FD4DB; --aquaG: linear-gradient(100deg, #7FE3E8, #4FC3CF); --onAqua: #0B1A1C;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.011em; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; touch-action: manipulation; }
a[href], button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; font-weight: 600; }
.two span { display: block; font-weight: 300; color: var(--ink2); }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--card); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* Header: same as the home page */
header { position: sticky; top: 0; z-index: 10; background: rgba(20,22,30,.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; min-height: 44px; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.logo svg { width: 24px; height: 24px; color: var(--aqua); }
header nav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; color: var(--ink2); }
header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 9px; }
header nav a:hover, header nav a[aria-current] { color: var(--ink); }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: none; color: var(--ink2); font-size: 13px; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 10px; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed=true] { color: var(--ink); background: rgba(255,255,255,.12); }

/* Local nav: every feature, one row (scrolls on phones) */
.local { border-bottom: 1px solid var(--line); background: var(--bg); }
.local .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.local .wrap::-webkit-scrollbar { display: none; }
.local a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13px; color: var(--ink2); white-space: nowrap; border-bottom: 2px solid transparent; }
.local a:hover { color: var(--ink); }
.local a[aria-current] { color: var(--ink); border-bottom-color: var(--aqua); }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--aquaG); color: var(--onAqua); font-weight: 600; font-size: 15px; white-space: nowrap; }
.pill:hover { filter: brightness(1.08); }
.pill:active { filter: brightness(.94); transform: translateY(1px); }
header .pill { padding: 0 18px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }
.cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Hero: product name, the two-line headline, one line, then the picture */
.hero { padding: 96px 0 0; text-align: center; }
.hero .name { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.02; margin: 14px auto 0; max-width: 980px; }
.hero .lead { font-size: clamp(19px, 2.1vw, 24px); color: var(--ink2); margin: 22px auto 0; max-width: 680px; line-height: 1.4; }
.hero .cta { justify-content: center; margin-top: 30px; }
.hero .plan { margin-top: 14px; font-size: 14px; color: var(--ink3); }
.hero .stage { margin: 72px auto 0; max-width: 1060px; }
.hero .stage > figure > .f-phone { width: min(340px, 72%); margin: 0 auto; }
.hero.left { text-align: left; }
.hero.left h1, .hero.left .lead { margin-left: 0; }
.hero.left .cta { justify-content: flex-start; }

/* Device frames (shadows give elevation only to the screenshot, which is the subject) */
.f-tablet { border-radius: 26px; border: 10px solid #0A0B0F; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.f-phone { border-radius: 40px; border: 7px solid #0A0B0F; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.f-tv { border-radius: 10px; border: 6px solid #050608; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.f-web { border-radius: 16px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.tv-foot { width: 22%; height: 10px; margin: 0 auto; background: #0A0B0F; border-radius: 0 0 8px 8px; }
.pair { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 4vw, 48px); }
.pair .f-phone { width: min(300px, 40%); }
.pair .f-phone:nth-child(2) { margin-bottom: 48px; }

/* Statement: one sentence, very large, nothing else */
.statement { padding: 160px 0 40px; text-align: center; }
.statement p { font-size: clamp(32px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; max-width: 940px; margin: 0 auto; }
.statement p span { color: var(--ink2); font-weight: 300; }
.statement small { display: block; margin: 22px auto 0; max-width: 620px; font-size: 19px; color: var(--ink2); line-height: 1.45; letter-spacing: -0.011em; }

/* Split: text beside the picture; .flip puts the picture first */
.split { padding: 120px 0 0; }
.split .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.split.flip .wrap { grid-template-columns: 7fr 5fr; }
.split.flip .txt { order: 2; }
.split.phone .wrap { grid-template-columns: 1fr 1fr; }
.split.phone figure { display: flex; justify-content: center; }
.split.phone .f-phone { width: min(320px, 78%); }
.split h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
.split .txt p { margin-top: 20px; color: var(--ink2); font-size: 19px; line-height: 1.5; max-width: 460px; }
.split .txt .text-link { margin-top: 14px; }
figure { margin: 0; }

/* Wide: one big picture with a caption under it */
.wide { padding: 120px 0 0; }
.wide figcaption { margin: 28px auto 0; text-align: center; color: var(--ink2); font-size: 19px; max-width: 640px; }
.wide figcaption b { color: var(--ink); font-weight: 600; }

/* Band: a solid surface for a point that has no screenshot */
.band { margin-top: 120px; padding: 96px 0; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 72px; align-items: end; }
.band h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }
.band p { color: var(--ink2); font-size: 19px; max-width: 520px; }
.band .text-link { margin-top: 14px; }

/* Facts: short claims in a row, separated by hairlines (not cards) */
.facts { padding: 120px 0 0; }
.facts h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; max-width: 680px; }
.facts ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 26px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.facts li span { display: block; margin-top: 8px; color: var(--ink2); font-size: 15px; line-height: 1.45; }
.facts.three ul { grid-template-columns: repeat(3, 1fr); }

/* Roles (HRM): three solid columns, each a different length on purpose */
.roles { padding: 120px 0 0; }
.roles h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
.roles .grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.role h3 { font-size: 24px; }
.role p { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.role ul { margin: 18px 0 0; padding: 0; list-style: none; }
.role li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }

/* Tiles (HRM): two-up solid tiles, text on top, the phone screen rising from the bottom edge */
.tiles { padding: 120px 0 0; }
.tiles + .band { margin-top: 120px; }
.tiles .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 44px 44px 0; overflow: hidden; }
.tile h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; }
.tile p { margin-top: 16px; color: var(--ink2); font-size: 17px; line-height: 1.5; max-width: 440px; }
.tile .text-link { margin-top: 8px; }
.tile figure { margin-top: auto; padding-top: 40px; display: flex; justify-content: center; align-items: flex-start; height: 560px; overflow: hidden; }
.tile .f-phone { flex: none; align-self: flex-start; height: auto; width: 74%; max-width: 330px; border-bottom: 0; border-radius: 40px 40px 0 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.tile:has(.slot.missing) { padding-bottom: 44px; }

/* Screenshot slots that are filled later: hidden until the image loads, the layout falls back to text only */
.slot.missing { display: none !important; }
.split:has(.slot.missing) .wrap { grid-template-columns: 1fr; }
.split:has(.slot.missing) .txt p { max-width: 640px; }

/* Closing */
.close { margin-top: 140px; padding: 120px 0; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, rgba(17,19,27,.72) 45%, rgba(17,19,27,.82) 100%), url(../img/neo-backdrop.webp) center 70% / cover; }
.close h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; }
.close .lead { margin: 16px auto 0; font-size: 19px; color: #D9DBE2; max-width: 560px; }
.close .cta { justify-content: center; margin-top: 28px; }
.next { padding: 56px 0; border-top: 1px solid var(--line); }
.next .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--ink2); font-size: 15px; }
.next .text-link { font-size: 19px; }

/* Features index: cards that are links, each a different picture shape */
.cards { padding: 72px 0 0; }
.cards .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: rgba(255,255,255,.28); }
.card .pic { background: var(--bg2); height: 260px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding: 28px 28px 0; }
.card .pic img { max-height: 100%; width: auto; border-radius: 14px 14px 0 0; }
.card .pic img.ph { border-radius: 26px 26px 0 0; width: 46%; height: auto; max-height: none; align-self: flex-start; }
.card .txt { padding: 24px 28px 28px; }
.card h2 { font-size: 26px; line-height: 1.15; }
.card p { margin-top: 8px; color: var(--ink2); font-size: 16px; }
.card .tag { display: block; margin-top: 14px; font-size: 13px; color: var(--ink3); }
.card.wide-card { grid-column: 1 / -1; }
.card.wide-card .pic { height: 340px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink3); font-size: 12px; }
footer .wrap { display: grid; gap: 20px; }
footer .links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 13px; color: var(--ink2); }
footer .links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
footer .links a:hover { color: var(--ink); }
footer p + p { margin-top: 8px; }
footer .notes { max-width: 820px; }

@media (max-width: 900px) {
  .split .wrap, .split.flip .wrap, .split.phone .wrap, .band .wrap { grid-template-columns: 1fr; gap: 40px; }
  .band .wrap { gap: 20px; }
  .split.flip .txt { order: 0; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line); }
  .roles .grid { grid-template-columns: 1fr; }
  .tiles .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header .wrap { gap: 8px; }
  header nav { display: none; }
  .lang { margin-left: auto; }
  header .pill { padding: 0 14px; }
  .hero { padding-top: 56px; }
  .hero .stage { margin-top: 44px; }
  .f-tablet { border-width: 5px; border-radius: 14px; }
  .f-phone { border-width: 5px; border-radius: 28px; }
  .f-tv { border-width: 3px; border-radius: 6px; }
  .pair .f-phone { width: 46%; }
  .pair .f-phone:nth-child(2) { margin-bottom: 28px; }
  .statement { padding: 96px 0 16px; }
  .statement small, .split .txt p, .band p, .wide figcaption, .close .lead { font-size: 17px; }
  .split, .wide, .facts, .roles, .tiles { padding-top: 80px; }
  .tile { padding: 28px 24px 0; border-radius: 24px; }
  .tile:has(.slot.missing) { padding-bottom: 28px; }
  .tile figure { height: 460px; padding-top: 28px; }
  .band { margin-top: 80px; padding: 64px 0; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 20px 0 0; border-left: 0; }
  .facts li + li { margin-top: 20px; border-top: 1px solid var(--line); }
  .cards .grid { grid-template-columns: 1fr; }
  .card .pic, .card.wide-card .pic { height: 210px; padding: 20px 20px 0; }
  .close { margin-top: 96px; padding: 88px 0; }
}
