.hero {
  height: calc(100svh - var(--header));
  min-height: calc(100svh - var(--header));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--ivory);
  overflow: clip;
}
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  min-height: 0;
  height: 100%;
  padding-top: clamp(24px, 5svh, 56px);
  padding-bottom: clamp(20px, 4svh, 46px);
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { font-size: clamp(48px, 5.45vw, 84px); font-weight: 650; line-height: 1.06; letter-spacing: -.058em; }
.hero-line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-line > span { display: inline-block; white-space: nowrap; }
.hero-line-accent { color: var(--accent); }
.hero-line-last { font-size: .78em; line-height: 1.2; padding-top: .08em; }
.hero-description { font-size: clamp(17px, 1.4vw, 22px); max-width: 620px; margin-top: 24px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 24px; }
.hero-actions .button { white-space: nowrap; font-size: 18px; padding: 16px 26px; }
.hero-price { margin-top: 26px; }
.hero-price-amount { display: flex; align-items: baseline; gap: 12px; color: var(--accent); }
.hero-price-amount strong { font-size: clamp(76px, 6.8vw, 108px); font-weight: 650; line-height: .95; letter-spacing: -.065em; white-space: nowrap; }
.hero-price-from { font-size: 23px; font-weight: 550; }
.hero-price-once { font-size: 16px; color: var(--muted); white-space: nowrap; }
.hero-price p { margin-top: 10px; font-size: 15px; color: var(--ink); line-height: 1.5; }

.hero-visual { display: flex; flex-direction: column; align-self: center; width: 100%; height: 100%; max-height: 680px; min-width: 0; min-height: 0; margin: 0; }
.showcase-scene { --card-width: min(82%, 530px); --front-x: 32px; --back-x: 56px; --front-y: 24px; --back-y: 32px; position: relative; flex: 1 1 0%; min-height: 0; perspective: 1200px; isolation: isolate; }
.showcase-intro, .showcase-parallax { position: absolute; inset: 0; transform-style: preserve-3d; }
.showcase-parallax { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .45s cubic-bezier(.2,.75,.2,1); }
.showcase-card {
  --card-x: calc(-1 * var(--back-x, 70px));
  --card-y: calc(-1 * var(--back-y, 70px));
  --card-angle: -8deg;
  --card-scale: .95;
  --card-depth: -20px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-width, 82%);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 1px solid #fff9;
  border-radius: 10px;
  background: #f6f3ed;
  overflow: hidden;
  box-shadow: 0 22px 44px -14px #28241f38, 0 5px 12px #28241f0d;
  transform: translate3d(calc(-50% + var(--card-x)), calc(-50% + var(--card-y)), var(--card-depth)) rotate(var(--card-angle)) scale(var(--card-scale));
  transition: transform .95s cubic-bezier(.22,.8,.2,1), box-shadow .35s;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.showcase-card.is-current { --card-x: var(--front-x, 70px); --card-y: var(--front-y, 40px); --card-angle: 5deg; --card-scale: 1; --card-depth: 20px; z-index: 2; pointer-events: auto; cursor: zoom-in; }
.showcase-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.showcase-card.is-current:hover { box-shadow: 0 28px 52px -14px #28241f4a, 0 5px 12px #28241f0d; }
.showcase-card:focus-visible { outline-offset: 7px; }
.showcase-label { flex-shrink: 0; margin-top: 18px; font-size: 12px; line-height: 1.4; font-weight: 600; text-align: center; color: var(--ink); }
.showcase-select { display: flex; align-items: center; justify-content: center; gap: 24px; flex-shrink: 0; margin-top: 4px; }
.showcase-select button { position: relative; min-height: 44px; padding: 8px 0 12px; background: none; border: 0; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: left; }
.showcase-select button::after { content: ''; height: 2px; position: absolute; left: 0; right: 0; bottom: 5px; background: var(--line); transition: background .25s; }
.showcase-select button[aria-pressed=true] { color: var(--ink); font-weight: 600; }
.showcase-select button[aria-pressed=true]::after { background: var(--accent); }
.showcase-select button:hover { color: var(--ink); }
.hero-visual figcaption { flex-shrink: 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); margin-top: 8px; }

/* Browser previews fill their cards without an outer mat. */
.example-image { display: block; aspect-ratio: 3 / 2; padding: 0; background: transparent; border-radius: 7px; }
.example-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 7px; box-shadow: none; }
.example-image:hover img { transform: none; }
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready.is-visible { opacity: 1; transform: none; }
.reveal-ready:focus-within { opacity: 1; transform: none; }
.example:nth-child(2).reveal-ready { transition-delay: .12s; }

@media (prefers-reduced-motion: no-preference) {
  .hero-line > span { animation: hero-line-in .85s cubic-bezier(.2,.7,.2,1) both; }
  .hero-line:nth-child(2) > span { animation-delay: .1s; }
  .hero-line:nth-child(3) > span { animation-delay: .2s; }
  .hero-price { animation: hero-copy-in .75s .25s both; }
  .hero-description { animation: hero-copy-in .75s .35s both; }
  .hero-actions { animation: hero-copy-in .75s .45s both; }
  .showcase-intro { animation: hero-stage-in 1.1s .15s cubic-bezier(.22,.8,.2,1) both; }
}
@keyframes hero-line-in { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-stage-in { from { opacity: 0; transform: translate3d(32px,40px,0) scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .hero-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
  .hero h1 { font-size: clamp(44px, 5.4vw, 64px); }
  .hero-description { font-size: 18px; margin-top: 24px; }
  .hero-actions { gap: 12px 20px; margin-top: 26px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 14px; }
  .hero-price { margin-top: 22px; }
  .hero-price-amount strong { font-size: 76px; }
  .hero-price p { font-size: 13px; }
  .showcase-select { gap: 18px; }
  .showcase-select button { font-size: 12px; }
}
@media (min-width: 761px) and (max-height: 820px) {
  .hero-main { padding-block: 24px 18px; }
  .hero h1 { font-size: clamp(44px, 5vw, 70px); }
  .hero-description { font-size: 18px; margin-top: 22px; }
  .hero-actions, .hero-price { margin-top: 22px; }
  .hero-price-amount strong { font-size: 84px; }
}
@media (min-width: 761px) and (max-height: 740px) {
  .hero h1 { font-size: clamp(40px, 4.6vw, 62px); }
  .hero-description { margin-top: 18px; font-size: 17px; line-height: 1.45; }
  .hero-actions, .hero-price { margin-top: 20px; }
  .hero-actions .button { min-height: 48px; padding-block: 12px; }
  .hero-price-amount strong { font-size: 72px; }
  .hero-price p { font-size: 12px; }
}
@media (max-width: 760px) {
  .hero-main { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); align-items: start; gap: 12px; padding-block: 24px 12px; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(36px, 8.4vw, 58px); line-height: 1.04; }
  .hero-line-last { font-size: .82em; }
  .hero-description { font-size: 17px; margin-top: 16px; line-height: 1.5; max-width: 540px; }
  .hero-actions { margin-top: 20px; gap: 10px 22px; }
  .hero-actions .button { min-height: 48px; padding: 13px 18px; gap: 16px; font-size: 14px; }
  .hero-actions .text-link { min-height: 36px; font-size: 14px; }
  .hero-price { margin-top: 20px; }
  .hero-price-amount { gap: 8px; }
  .hero-price-amount strong { font-size: 64px; }
  .hero-price-from { font-size: 17px; }
  .hero-price-once { font-size: 13px; }
  .hero-price p { margin-top: 8px; font-size: 12px; }
  .hero-visual { align-self: stretch; max-height: none; }
  .showcase-scene { --card-width: min(72%, 28svh); --front-x: 12px; --back-x: 20px; --front-y: 12px; --back-y: 12px; }
  .showcase-card { border-radius: 6px; box-shadow: 0 14px 25px -9px #28241f38; }
  .showcase-label { margin-top: 8px; font-size: 11px; }
  .showcase-select { gap: 20px; }
  .showcase-select button { font-size: 11px; min-height: 44px; padding-bottom: 10px; }
  .hero-visual figcaption { margin-top: 4px; font-size: 11px; }
}
@media (max-width: 580px) {
  .hero-main { padding-block: 20px 10px; gap: 10px; }
  .hero-description { font-size: 16px; margin-top: 14px; }
  .hero-actions { margin-top: 18px; gap: 8px 10px; }
  .hero-actions .button { padding: 12px 11px; font-size: 13px; gap: 10px; }
  .hero-actions .button span { font-size: 18px; }
  .hero-actions .text-link { font-size: 12px; min-height: 44px; }
  .hero-price { margin-top: 18px; }
  .hero-price-amount strong { font-size: 64px; }
  .showcase-select { gap: 18px; }
}
@media (max-width: 380px) {
  .hero-description { font-size: 15px; }
  .hero-actions .button { font-size: 12px; padding-inline: 8px; gap: 8px; }
  .hero-price p { font-size: 11px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .hero { height: auto; }
  .hero-main { height: auto; grid-template-rows: auto minmax(220px, 1fr); padding-block: 16px 8px; gap: 6px; }
  .hero h1 { font-size: 34px; }
  .hero-description { font-size: 15px; margin-top: 14px; }
  .hero-actions { margin-top: 14px; gap: 6px 16px; }
  .hero-actions .button { min-height: 44px; padding: 11px 8px; font-size: 12px; gap: 8px; }
  .hero-actions .text-link { font-size: 12px; min-height: 44px; }
  .hero-price { margin-top: 14px; }
  .hero-price-amount strong { font-size: 56px; }
  .hero-price-once { font-size: 12px; }
  .hero-price p { font-size: 11px; }
  .showcase-label { margin-top: 4px; font-size: 10px; }
  .showcase-select { margin-top: 2px; }
  .hero-visual figcaption { font-size: 10px; }
}
@media (max-height: 600px) {
  .hero { height: auto; }
  .hero-main { height: auto; min-height: 480px; grid-template-rows: auto; padding-block: 32px; }
  .hero-visual { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-parallax { transform: none; }
  .showcase-card { transition: none; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
}
