.home {
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}
.home * { box-sizing: border-box; }
.home a { color: var(--brand); }
.home h1, .home h2, .home h3 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.home h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.home h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 28ch; }
.home p { margin: 0.4rem 0; }
.home .skip { position: absolute; left: -999px; }
.home .skip:focus { left: 1rem; top: 1rem; background: white; padding: 0.4rem 0.6rem; z-index: 6; }

.home-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.2rem;
  padding: 0.75rem 6vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.home-logo {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.home-logo .brand-mark { width: 36px; height: 36px; border-radius: 0; display: block; object-fit: contain; }
.home-logo .brand-name span { color: var(--brand); }
.home-links { display: flex; gap: 1.1rem; }
.home-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.home-links a:hover { color: var(--brand); }
.home-bar-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.home-menu {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.home-login, .home-join, .plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}
.home-login { color: var(--ink); background: transparent; border: 0; }
.home-sticky .home-login, .hero-actions .home-login { border: 1px solid var(--line); background: white; }
.home a.home-join, .home a.plan-cta { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.home a.home-join:hover, .home a.plan-cta:hover { background: var(--brand-dark); color: #fff; }
.home a:focus-visible, .home button:focus-visible, .home input:focus-visible, .home summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.home main { padding: 0 6vw 5rem; max-width: none; }
.hero, .section-head, .band, #how, #links, #plans, #faq, .sheet-note, .close { scroll-margin-top: 5.5rem; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding: 4.2rem 0 3rem; position: relative; }
.hero-world::before {
  content: "";
  position: absolute;
  inset: -1rem -8vw auto;
  height: 26rem;
  background: url("/img/teacherpay-world.jpg") center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent);
}
.hero > * { position: relative; z-index: 1; }
.kicker { color: var(--brand); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; }
.lede, .section-head p, .quiet { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 0.6rem; }
.hero-actions .home-login { border: 1px solid var(--line); background: white; }
.hero-figure {
  margin: 0;
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  background: #eaf4ff;
  box-shadow:
    0 28px 70px rgba(10, 92, 255, 0.16),
    0 0 0 1px rgba(10, 92, 255, 0.08);
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

.section-head { margin: 1rem 0 1.4rem; }
.band { background: var(--band); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; margin: 1rem 0 2rem; }
.method-group { margin-top: 1.2rem; }
.method-group h3 { font-size: 1rem; margin-bottom: 0.7rem; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method-grid.world { grid-template-columns: repeat(4, 1fr); }
.method { background: white; border-radius: 10px; padding: 1.15rem 1.2rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.method-icon { width: 48px; height: 48px; margin-bottom: 0.6rem; display: block; }
.method-name { font-size: 1.2rem; margin: 0; font-weight: 700; }
.method-fee { color: var(--brand); font-weight: 700; font-size: 0.95rem; }
.steps, .plan-grid, .receipt-grid, .faqs, .link-types { display: grid; gap: 1rem; }
.steps { grid-template-columns: repeat(3, 1fr); }
.link-types { grid-template-columns: 1fr 1fr; }
.link-type { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; box-shadow: var(--shadow); }
.steps article, .plan, .receipt, .faqs details, .volume, .sheet-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.steps article { padding: 1.15rem; }
.steps span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.benefits { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.benefits li { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }

.plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.home .plan-otc-note {
  margin-top: auto;
  margin-bottom: 0.9rem;
}
.home .plan-otc-block { margin-top: 1.5rem; }
.home .otc-pro-banner { margin-top: 0; }
.home .otc-pro-banner h2 { max-width: 18ch; color: #fff; }
.home .otc-pro-banner a.otc-pro-banner__cta,
.home .otc-pro-banner a.otc-pro-banner__ghost { color: #fff; }
.plan { padding: 1.3rem; display: flex; flex-direction: column; }
.plan-studio { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.fits { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }
.plan-price strong { font-size: 2.4rem; letter-spacing: -0.04em; font-weight: 700; }
.plan-price span, .plan-fee span { color: var(--muted); font-weight: 500; }
.plan-fee { font-size: 1.1rem; font-weight: 700; }
.plan ul { padding-left: 1.1rem; margin: 0.4rem 0 1.2rem; color: var(--muted); }
.plan li + li { margin-top: 0.35rem; }
.plan-cta { margin-top: auto; }
.billing-note { font-weight: 650; }
.table-scroll { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare th, .compare td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.95rem; font-weight: 700; }

.example-tools { display: grid; gap: 0.4rem; max-width: 24rem; margin-bottom: 1rem; }
.example-tools input { border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; font: inherit; background: white; }
.receipt-grid { grid-template-columns: repeat(3, 1fr); }
.receipt { padding: 1rem 1.1rem; }
.receipt [data-receipt] { display: grid; }
.receipt [data-receipt] > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.receipt-total { font-weight: 700; }
.receipt-net { color: var(--brand); font-size: 1.05rem; }
.volume, .sheet-note, .close { padding: 1.3rem; margin-top: 1rem; }
.volume { background: var(--ink); color: white; border: 0; }
.volume p, .volume li { color: #c9d7e8; }
.close { text-align: left; background: var(--band); }
.close-mark { width: 80px; height: 80px; border-radius: 0; display: block; margin-bottom: 1rem; object-fit: contain; }
.faqs details { padding: 0.9rem 1rem; }
.faqs summary { cursor: pointer; font-weight: 700; }
.faqs p { color: var(--muted); }
.home-sticky { display: none; }

@media (max-width: 980px) {
  .hero, .steps, .plan-grid, .receipt-grid, .method-grid, .method-grid.world, .link-types { grid-template-columns: 1fr; }
  .home h1 { max-width: none; }
}
@media (max-width: 760px) {
  .home-menu { display: inline-flex; margin-left: auto; }
  .home-links { display: none; width: 100%; flex-direction: column; padding-top: 0.4rem; }
  .home.nav-open .home-links { display: flex; }
  .home-bar-actions { width: 100%; }
  .home-bar-actions a { flex: 1; }
  .home-sticky {
    display: flex;
    position: sticky;
    bottom: 0;
    gap: 0.5rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
  }
  .home-sticky a { flex: 1; }
  .home main { padding-bottom: 6rem; }
}
