/* lab2.css — the Native Phrase Lab page. Indigo ink, lots of air. */
.labem, .page-lab2 .xh2 em.labem { font-style: normal; color: var(--lab); }

.lh { position: relative; overflow: hidden; padding: calc(var(--bar-h) + var(--bar-gap) + clamp(30px, 5vw, 70px)) 0 clamp(60px, 8vw, 110px); background: radial-gradient(ellipse at 80% 20%, #E3E1FF 0%, #F6F5FF 40%, #fff 75%); }
.lh-cloud { position: absolute; inset: 0; pointer-events: none; }
.lh-cloud span { position: absolute; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(67,56,230,.12); color: rgba(67,56,230,.55); font-family: var(--f-display); font-variation-settings: 'opsz' 24, 'wdth' 94, 'wght' 650; white-space: nowrap; font-size: .95rem; animation: floaty var(--t, 16s) ease-in-out infinite alternate; }
@keyframes floaty { to { transform: translate(var(--fx, 20px), var(--fy, -30px)); } }
.lh-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; min-height: min(76vh, 720px); }
.lh-copy { display: grid; gap: 22px; }
.lh-crumb { font-size: .9rem; color: var(--ink-3); } .lh-crumb a { color: var(--ink-2); }
.lh .xh1 { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.6rem); }
.lh-proof { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); justify-self: start; }
.stars { color: #F2A900; letter-spacing: .1em; }
.lh-proof q { font-weight: 700; } .lh-proof small { color: var(--ink-3); margin-left: 6px; }
.lh-devices { position: relative; min-height: 460px; }
.lh-laptop { position: relative; width: 92%; margin-top: 20px; }
.lh-phone { position: absolute; right: -2%; bottom: -30px; width: 30%; min-width: 150px; }
.lh-phone .phone { max-width: none; border-radius: 34px; padding: 8px; }
.lh-phone .phone-screen { border-radius: 27px; }
.lh-phone .phone::after { top: 14px; height: 16px; }
.lh-note { left: 4%; bottom: -20px; color: var(--lab); }
.laptop-screen video, .phone-screen video, .laptop-screen img.fb, .phone-screen img.fb { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

.lstats { background: var(--lab); color: #fff; }
.lstats-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.lstats-in > div { padding: 32px 20px; display: grid; gap: 6px; border-left: 1px solid rgba(255,255,255,.18); }
.lstats-in > div:first-child { border-left: 0; }
.lstats b { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.04em; font-variation-settings: 'opsz' 96, 'wdth' 84, 'wght' 800; font-variant-numeric: tabular-nums; }
.lstats span { color: #D4D1FF; font-size: .95rem; }

/* anatomy */
.an { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-areas: "a1 card a4" "a2 card a5" "a3 card a6"; gap: 18px 26px; align-items: center; }
.an-card { grid-area: card; padding: clamp(26px, 3vw, 40px); display: grid; gap: 16px; justify-items: start; box-shadow: 0 0 0 2px var(--lab), var(--shadow-3); position: relative; z-index: 2; }
.an-top { display: flex; gap: 8px; }
.an-lvl { padding: 4px 10px; border-radius: 8px; background: var(--lab); color: #fff; font-weight: 800; font-size: .8rem; }
.an-type { padding: 4px 10px; border-radius: 8px; background: var(--lab-soft); color: var(--lab-2); font-weight: 700; font-size: .8rem; }
.an-term { font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-variation-settings: 'opsz' 96, 'wdth' 86, 'wght' 800; }
.an-ex { font-size: 1.15rem; color: var(--ink-2); font-style: italic; }
.an-part { padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); display: grid; gap: 6px; position: relative; }
.an-part b { font-family: var(--f-hand); font-size: 1.55rem; line-height: 1; color: var(--lab); }
.an-part p { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.an-part::after { content: ''; position: absolute; top: 50%; width: 26px; height: 2px; background: var(--lab); opacity: .35; }
.ap1, .ap2, .ap3 { } .ap1::after, .ap2::after, .ap3::after { right: -26px; }
.ap4::after, .ap5::after, .ap6::after { left: -26px; }
.ap1 { grid-area: a1; } .ap2 { grid-area: a2; } .ap3 { grid-area: a3; } .ap4 { grid-area: a4; } .ap5 { grid-area: a5; } .ap6 { grid-area: a6; }
.an-form i { font-style: normal; color: var(--lab); font-weight: 700; }
.an-tr { display: grid; gap: 8px; }
.an-tr select { justify-self: start; min-height: 38px; padding: 0 8px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.an-tr span { color: var(--ink); font-weight: 650; font-size: 1.08rem; }

/* samples */
.sams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sam { padding: 26px; display: grid; gap: 12px; align-content: start; }
.sam-n { font-weight: 800; color: var(--lab); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.sam-sit { color: var(--ink-3); }
.sam-line { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.15; letter-spacing: -.02em; font-variation-settings: 'opsz' 48, 'wdth' 92, 'wght' 740; }
.sam .say { justify-self: start; }
.sam-q { font-weight: 700; margin-top: 6px; }
.sam-opts { display: grid; gap: 8px; }
.sam-opts button { text-align: left; min-height: 52px; padding: 10px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: box-shadow .2s, background .2s; }
.sam-opts button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sam-opts .ok { background: var(--wb-soft); box-shadow: inset 0 0 0 2px var(--wb); }
.sam-opts .no { background: var(--live-soft); box-shadow: inset 0 0 0 2px var(--live); }
.sam-fb { min-height: 1.4em; font-weight: 600; color: var(--ink-2); }
.sam-more { text-align: center; margin-top: 26px; color: var(--ink-2); font-size: 1.1rem; }

/* record */
.sayit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.sayit-grid > div:first-child { display: grid; gap: 18px; }
.rec { padding: clamp(22px, 3vw, 36px); }
.rec-line { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.03em; font-variation-settings: 'opsz' 64, 'wdth' 90, 'wght' 780; }
.rec-wave { position: relative; margin: 16px 0; height: 90px; border-radius: 16px; background: var(--paper); overflow: hidden; }
.rec-wave canvas { width: 100%; height: 100%; }
.rec-key { position: absolute; right: 10px; top: 8px; font-size: .75rem; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.rec-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .k1 { background: var(--lab); } .k2 { background: var(--live); margin-left: 6px; }
.rec-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rec-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; }
.rec-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--live); box-shadow: inset 0 0 0 4px var(--ink), 0 0 0 2px var(--live); }
.rec-btn.on .rec-dot { border-radius: 5px; }
.rec-note { margin-top: 12px; }

/* routine */
.rt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rt-c { margin: 0; display: grid; gap: 14px; align-content: start; }
.rt-img { aspect-ratio: 16/11; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
.rt-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1s var(--ease-out); }
.rt-c:hover .rt-img img { transform: scale(1.05); }
.rt-c figcaption { display: grid; gap: 4px; }
.rt-c b { font-family: var(--f-display); font-size: 1.3rem; font-variation-settings: 'opsz' 32, 'wdth' 92, 'wght' 760; }
.rt-c span { color: var(--ink-2); }

/* topics */
.tp-rows { display: grid; gap: 12px; }
.tp-rows .marquee-track span { padding: 14px 22px; border-radius: 999px; background: var(--lab-soft); color: var(--lab-2); font-weight: 700; white-space: nowrap; font-size: 1.05rem; }
.tp-rows .marquee:nth-child(2) .marquee-track span { background: var(--paper-2); color: var(--ink); }
.tp-rows .marquee:nth-child(2) .marquee-track { animation-direction: reverse; }
.langs { margin-top: clamp(40px, 6vw, 70px); display: grid; gap: 12px; justify-items: center; text-align: center; }
.langs-list { font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); line-height: 1.7; max-width: 60ch; color: var(--ink-2); }

/* offer */
.loffer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.loffer-card { padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 18px; box-shadow: 0 0 0 2px var(--lab), var(--shadow-3); }
.loffer-price b { font-family: var(--f-display); font-size: clamp(3.6rem, 2.6rem + 3vw, 5.4rem); line-height: 1; letter-spacing: -.05em; font-variation-settings: 'opsz' 96, 'wdth' 84, 'wght' 800; }
.loffer-price span { font-family: var(--f-text); font-size: 1.1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.loffer-side { display: grid; gap: 14px; }
.lrev { margin: 0; padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 8px; }
.lrev blockquote { margin: 0; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.15; letter-spacing: -.02em; font-variation-settings: 'opsz' 48, 'wdth' 92, 'wght' 720; }
.lrev figcaption { color: var(--ink-3); font-size: .9rem; }
.lme { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.lme img { width: 110px; height: 110px; border-radius: 22px; object-fit: cover; }
.lme .hand { font-size: 1.4rem; color: var(--ink); }
.lme span { display: block; margin-top: 6px; font-weight: 800; color: var(--lab); }
.lboth { display: grid; gap: 4px; padding: 22px; border-radius: 22px; background: var(--ink); color: #fff; text-decoration: none; }
.lboth:hover { color: #fff; background: #000; }
.lboth b { font-family: var(--f-display); font-size: 1.3rem; font-variation-settings: 'opsz' 32, 'wdth' 92, 'wght' 740; }
.lboth span { color: #B7BDCA; }

.unl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.unl > div { display: grid; gap: 14px; }
.unl-form { display: grid; gap: 10px; }
.unl-form label { font-weight: 700; }
.unl-form > div { display: flex; gap: 10px; flex-wrap: wrap; }
.unl-form input { flex: 1; min-width: 220px; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line-2); background: #fff; font-family: var(--f-mono); font-size: .95rem; }
.unl-form input:focus { outline: none; border-color: var(--lab); box-shadow: 0 0 0 4px var(--lab-soft); }

.lfin { padding: clamp(120px, 16vw, 220px) 0; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #6D63FF, var(--lab) 40%, #1E1789 100%); }
.lfin-in { display: grid; gap: 28px; justify-items: center; }
.lfin .xh1 em { color: var(--pen); }
.lfin .xbtns { justify-content: center; }

@media (max-width: 1000px) {
  .lh-grid, .sayit-grid, .loffer-grid, .unl { grid-template-columns: 1fr; }
  .lh-devices { min-height: 0; margin-bottom: 30px; }
  .lstats-in { grid-template-columns: repeat(3, 1fr); }
  .lstats-in > div:nth-child(4) { border-left: 0; }
  .an { grid-template-columns: 1fr 1fr; grid-template-areas: "card card" "a1 a2" "a3 a4" "a5 a6"; }
  .an-part::after { display: none; }
  .sams { grid-template-columns: 1fr; }
  .rt { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lstats-in { grid-template-columns: 1fr 1fr; }
  .lstats-in > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 22px 8px; }
  .lstats-in > div:last-child { grid-column: span 2; }
  .an { grid-template-columns: 1fr; grid-template-areas: "card" "a1" "a2" "a3" "a4" "a5" "a6"; }
  .rt { grid-template-columns: 1fr; }
  .lh-cloud span:nth-child(n+8) { display: none; }
  .lh-cloud { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { .lh-cloud span { animation: none; } }
.unl-err { padding: 14px 18px; border-radius: 14px; background: var(--live-soft); color: #8A1C14; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(232,53,43,.35); }
.unl-err a { color: inherit; }
.lme { grid-template-columns: 150px 1fr; } .lme img { width: 150px; height: 150px; object-position: 50% 25%; }
