/* ==========================================================================
   Piano Class — landing page and the public pages (spec-landing.md B3, B4)
   Shared by landing.html and landing-*.html. Every colour is a token from base.css;
   breakpoints are the app's own, 640 and 1024.
   ========================================================================== */
html { scroll-behavior: smooth; }
body { background: var(--bg); }
/* base.css spaces sibling cards with a top margin; every card here sits in a grid or a flex row. */
.steps-grid > .card, .plans > .card, .doc-steps > .card { margin-top: 0; }
.wrap { width: 100%; max-width: var(--content-max-wide); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-head__row { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; color: var(--text); }
.brand__logo { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-grad); color: var(--on-accent); display: grid; place-items: center; box-shadow: var(--shadow-accent); }
.brand__logo [data-icon] { width: 20px; height: 20px; }
.site-nav { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 14.5px; color: var(--text-2); }
.site-nav a:hover, .site-nav a.is-on { background: var(--surface-2); color: var(--text); }
.site-head__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-head__login { display: none; }
@media (min-width: 640px) { .site-head__login { display: inline-flex; } }
@media (min-width: 1024px) { .site-nav { display: flex; } }

/* ---- hero ---- */
.hero-band { background: var(--accent-grad); color: var(--on-accent); position: relative; overflow: hidden; padding: 36px 0 44px; border-radius: 0 0 36px 36px; }
.hero-band::before, .hero-band::after { content: ""; position: absolute; border-radius: 50%; background: var(--hero-blob); pointer-events: none; }
.hero-band::before { width: 420px; height: 420px; right: -160px; top: -220px; }
.hero-band::after { width: 260px; height: 260px; left: -120px; bottom: -140px; }
.hero-band .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--chip-glass-bg); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero-kicker [data-icon] { width: 16px; height: 16px; }
.hero-title { font-size: 34px; line-height: 1.12; font-weight: 900; letter-spacing: -.015em; margin-top: 16px; }
.hero-sub { font-size: 16.5px; font-weight: 600; opacity: .94; margin-top: 14px; max-width: 560px; line-height: 1.5; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero-cta .btn { min-height: 56px; font-size: 17px; border-radius: 18px; }
.btn--glass { background: var(--hero-switch-bg); color: var(--on-accent); border-color: var(--chip-glass-bg); }
.btn--glass:hover { background: var(--chip-glass-bg); }
.hero-note { font-size: 13.5px; font-weight: 700; opacity: .9; margin-top: 12px; max-width: 560px; line-height: 1.5; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px 0 12px; border-radius: 14px; background: var(--auth-dark); color: var(--white); box-shadow: 0 4px 0 var(--auth-dark-deep); position: relative; }
.store__mark { width: 26px; height: 26px; display: grid; place-items: center; }
.store__mark svg { width: 24px; height: 24px; fill: currentColor; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__text small { font-size: 10.5px; font-weight: 700; opacity: .8; letter-spacing: .02em; }
.store__text b { font-size: 16px; font-weight: 900; }
.store__soon { position: absolute; top: -10px; right: -6px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: var(--yellow); color: var(--on-yellow); font-size: 11px; font-weight: 900; display: inline-flex; align-items: center; box-shadow: var(--shadow-1); }

.hero-visual { position: relative; display: flex; justify-content: center; gap: 16px; padding-top: 8px; }
.phone { width: 46%; max-width: 230px; border-radius: 30px; background: var(--text); padding: 8px; box-shadow: var(--shadow-2); }
.phone img { display: block; width: 100%; border-radius: 22px; }
.phone--back { transform: translateY(26px); }
.float-staff { display: none; position: absolute; left: -12px; bottom: 28px; width: 230px; padding: 12px 12px 8px; }
.float-staff__label { font-size: 12.5px; font-weight: 800; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.float-staff__label .status-dot { flex: 0 0 auto; }

@media (min-width: 640px) {
  .hero-band { padding: 48px 0 56px; }
  .hero-title { font-size: 42px; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { flex: 1; max-width: 300px; }
  .phone { max-width: 250px; }
}
@media (min-width: 1024px) {
  .hero-band { padding: 64px 0 72px; border-radius: 0 0 48px 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; }
  .hero-title { font-size: 46px; }
  .hero-visual { justify-content: flex-end; padding-right: 8px; }
  .float-staff { display: block; }
}

/* ---- section frame ---- */
.band { padding: 44px 0 8px; }
.band__kicker { font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.band__title { font-size: 26px; font-weight: 900; letter-spacing: -.01em; margin-top: 6px; line-height: 1.2; }
.band__sub { font-size: 15.5px; color: var(--text-2); font-weight: 600; margin-top: 8px; max-width: 640px; line-height: 1.5; }
.band__head { margin-bottom: 22px; }
.band__head--center { text-align: center; } .band__head--center .band__sub { margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .band { padding: 56px 0 12px; } .band__title { font-size: 30px; } }
@media (min-width: 1024px) { .band { padding: 72px 0 16px; } .band__title { font-size: 34px; } }

/* ---- how it works ---- */
.audience { margin-top: 8px; }
.audience + .audience { margin-top: 32px; }
.audience__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.audience__title { font-size: 18px; font-weight: 900; }
.audience__sub { font-size: 14px; color: var(--text-2); font-weight: 600; margin-top: 1px; }
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.step-card { padding: 0; overflow: hidden; display: flex; flex-direction: row; align-items: stretch; }
.step-card__shot { flex: 0 0 118px; background: var(--surface-2); padding: 14px 0 0 14px; display: flex; align-items: flex-end; overflow: hidden; }
.step-card__shot img { display: block; width: 100%; aspect-ratio: 402 / 500; object-fit: cover; object-position: top; border-radius: 14px 14px 0 0; box-shadow: var(--shadow-2); }
.step-card__body { flex: 1; min-width: 0; padding: 14px 16px 16px 14px; display: flex; gap: 10px; align-items: flex-start; }
.step__title { font-weight: 900; font-size: 15.5px; line-height: 1.3; }
.step__sub { font-size: 13.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .step-card { flex-direction: column; }
  .step-card__shot { flex: 0 0 auto; padding: 22px 26px 0; justify-content: center; }
  .step-card__shot img { width: 100%; max-width: 210px; aspect-ratio: 402 / 400; border-radius: 18px 18px 0 0; }
  .step-card__body { padding: 16px 18px 18px; gap: 12px; }
}

/* ---- features: one iPhone, six rows ---- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.showcase__device { display: flex; justify-content: center; }
.device-stage { position: relative; width: min(100%, 360px); padding: 28px 0 0; display: flex; justify-content: center; }
.device-stage::before { content: ""; position: absolute; inset: 0; border-radius: 40px; background: var(--accent-grad); opacity: .95; }
.device-stage::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--hero-blob); right: -70px; top: -90px; pointer-events: none; }
.device-stage { overflow: hidden; }
.iphone { position: relative; width: 250px; border-radius: 40px; background: var(--text); padding: 10px; box-shadow: var(--shadow-2), 0 30px 60px rgba(28, 33, 64, .28); transform: translateY(6px); }
.iphone::before { content: ""; position: absolute; inset: 3px; border-radius: 37px; border: 2px solid var(--key-black-bg); pointer-events: none; }
.iphone__island { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%); border-radius: 12px; background: var(--text); z-index: 2; }
.iphone img { display: block; width: 100%; border-radius: 31px 31px 0 0; aspect-ratio: 402 / 700; object-fit: cover; object-position: top; }
.showcase__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.feature-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-1); }
.feature-row .tile { width: 44px; height: 44px; border-radius: 14px; }
.feature-row .tile [data-icon], .feature-row .tile .icon-inline { width: 22px; height: 22px; }
.feature__title { font-size: 16px; font-weight: 900; line-height: 1.3; }
.feature__sub { font-size: 14px; color: var(--text-2); line-height: 1.5; margin-top: 4px; }
@media (min-width: 640px) {
  .showcase__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-stage { width: 100%; max-width: 640px; padding: 36px 0 0; }
  .iphone { width: 270px; }
}
@media (min-width: 1024px) {
  .showcase { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .device-stage { max-width: 420px; padding: 44px 0 0; }
  .iphone { width: 280px; }
}

/* ---- pricing ---- */
.terms { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 20px; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.plans--2 { max-width: 760px; margin: 0 auto; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.plan { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.plan--hot { border-bottom-width: 4px; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan__name { font-size: 17px; font-weight: 900; }
.plan__seats { font-size: 36px; font-weight: 900; line-height: 1.05; }
.plan__seats small { font-size: 15px; font-weight: 800; color: var(--text-2); }
.plan__pricing { display: flex; flex-direction: column; gap: 4px; }
.plan__was { font-size: 15px; font-weight: 700; color: var(--text-2); text-decoration: line-through; }
.plan__price { font-size: 30px; font-weight: 900; line-height: 1.1; }
.plan__price small { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.plan__per { font-size: 13px; color: var(--text-2); font-weight: 700; line-height: 1.45; }
.plan .btn { margin-top: auto; }
.plan__fit { font-size: 13px; color: var(--text-2); font-weight: 700; text-align: center; }
.pricing-foot { text-align: center; font-size: 14px; color: var(--text-2); font-weight: 700; margin: 18px auto 0; max-width: 640px; line-height: 1.5; }

/* ---- faq, closing, footer ---- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 800; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary [data-icon] { width: 20px; height: 20px; color: var(--text-3); margin-left: auto; flex: 0 0 auto; transition: transform .15s; }
.faq details[open] summary [data-icon] { transform: rotate(180deg); }
.faq__body { padding: 0 18px 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.faq__body a { font-weight: 800; }

.closing { margin-top: 44px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); border-bottom-width: 4px; border-radius: 28px; padding: 32px 22px; text-align: center; }
.closing__title { font-size: 24px; font-weight: 900; }
.closing__sub { color: var(--text-2); font-weight: 600; margin-top: 8px; }
.closing .hero-cta { justify-content: center; }
.closing .hero-cta .btn { flex: 0 1 auto; }
@media (min-width: 640px) { .closing .hero-cta .btn { flex: 0 1 300px; } }

.site-foot { margin-top: 48px; border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 36px; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot__title { font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.site-foot ul { display: flex; flex-direction: column; gap: 8px; }
.site-foot li a { color: var(--text-2); font-weight: 700; font-size: 14.5px; }
.site-foot li a:hover { color: var(--accent); }
.site-foot__about { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-top: 10px; max-width: 380px; }
.site-foot__bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); font-weight: 700; }

/* ---- the public text pages: privacy, terms, support, delete account ---- */
.doc-hero { background: var(--accent-grad); color: var(--on-accent); padding: 34px 0 40px; border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; border-radius: 50%; background: var(--hero-blob); width: 320px; height: 320px; right: -120px; top: -180px; pointer-events: none; }
.doc-hero .wrap { position: relative; }
.doc-hero__kicker { font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.doc-hero__title { font-size: 30px; font-weight: 900; letter-spacing: -.01em; margin-top: 6px; line-height: 1.15; }
.doc-hero__meta { font-size: 14px; font-weight: 700; opacity: .9; margin-top: 10px; }
.doc { max-width: 800px; margin: 0 auto; padding: 28px 20px 8px; }
.doc__intro { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; font-size: 15px; color: var(--text-2); font-weight: 600; line-height: 1.55; box-shadow: var(--shadow-1); }
.doc h2 { font-size: 20px; font-weight: 900; margin-top: 32px; padding-top: 8px; display: flex; align-items: center; gap: 10px; }
.doc h2 .num-badge--sm { font-size: 12.5px; }
.doc h3 { font-size: 16px; font-weight: 900; margin-top: 18px; }
.doc p { font-size: 15px; line-height: 1.6; color: var(--text); margin-top: 10px; }
.doc ul, .doc ol { margin-top: 8px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc li { font-size: 15px; line-height: 1.55; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.45; }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--surface-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc .placeholder { background: var(--yellow-soft); color: var(--yellow-ink); padding: 0 6px; border-radius: 6px; font-weight: 800; }
.doc .callout { margin-top: 14px; }
.doc-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .doc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc-step { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.doc-step__title { font-weight: 900; font-size: 15.5px; }
.doc-step__sub { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.doc-contact { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.doc-toc { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-toc a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border-2); font-size: 13px; font-weight: 800; color: var(--text-2); }
.doc-toc a:hover { color: var(--accent); border-color: var(--accent-soft-2); }
