/* landing (BRAND) */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.hero .bar { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: 28px clamp(16px, 4vw, 48px); }
.hero .bar .hg-label { color: var(--hg-fg-2); }
.hero .bar a.hg-label { text-decoration: none; }
.hero .bar a.hg-label:hover { color: var(--hg-fg); }
.hero .stage { position: relative; display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); align-items: center; padding: 0 clamp(16px, 4vw, 48px); }
/* the brand band behind the wordmark — the same light the hologram stands in (holo-stage.js draws its beam with the same 1px RGB hairlines) */
.hero canvas.scan {
  position: absolute; left: -4%; top: 47%; height: 60%; width: 66%; transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(ellipse 54% 46% at 40% 50%, #000 0%, rgba(0,0,0,.6) 42%, transparent 76%);
          mask-image: radial-gradient(ellipse 54% 46% at 40% 50%, #000 0%, rgba(0,0,0,.6) 42%, transparent 76%);
  opacity: .85; filter: blur(.3px) saturate(1.2);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .78; } 50% { opacity: .95; } }
.hero .copy { position: relative; z-index: 1; transform: translateY(-7%); min-width: 0; }
.hero h1 { position: relative; margin: 0; font-size: clamp(60px, 12.5vw, 230px); white-space: nowrap; margin-left: -0.04em; }
.hero h1 sup { font-size: .2em; vertical-align: 2.6em; }
.hero .tag { margin: clamp(16px, 1.8vw, 28px) 0 0; font-size: clamp(16px, 1.45vw, 22px); color: var(--hg-fg-2); max-width: 34ch; text-wrap: balance; font-weight: 400; letter-spacing: -0.01em; }
/* the hologram: a real scanned dish in the beam (holo-stage.js fills .holo-box) */
.hero .holo { position: relative; align-self: stretch; min-width: 0; min-height: 0; }
.hero .holo-box { position: absolute; inset: 0; }
.hero .cap { position: absolute; left: 0; right: 0; bottom: clamp(0px, 1.2vh, 14px); margin: 0; display: flex; justify-content: center; gap: 1.8em; font-size: 10px; white-space: nowrap; pointer-events: none; }
.hero .cap #heroDish { color: var(--hg-fg-2); transition: opacity .5s ease; }
/* the caption belongs to the dish: it sits just under the projector ring (whose bottom is 0.4 stage units below the
   stage's middle; a stage unit is the shorter side of .holo), not at the bottom of a tall column */
@supports (container-type: size) and (top: min(1cqw, 1cqh)) {
  .hero .holo { container-type: size; }
  .hero .cap { bottom: auto; top: min(calc(50% + 0.46 * min(100cqw, 100cqh)), calc(100% - 22px)); transition: opacity .5s ease; }
}
.hero .foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; padding: 28px clamp(16px, 4vw, 48px) 32px; }
.hero .foot a.hg-label { text-decoration: none; color: var(--hg-fg-2); }

.wrap { padding: 0 clamp(16px, 6vw, 96px); max-width: 1440px; margin: 0 auto; }
section.s { padding-block: clamp(96px, 16vh, 180px); }
.kicker { display: block; margin-bottom: 28px; }
h2.big { font-weight: 800; letter-spacing: -0.045em; line-height: .95; font-size: clamp(44px, 7vw, 108px); margin: 0 0 28px; }
p.lede { color: var(--hg-fg-2); font-size: clamp(18px, 1.5vw, 22px); max-width: 38ch; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: 80px; }
.steps .n { font-family: var(--hg-font-mono); font-size: 12px; letter-spacing: .28em; color: var(--hg-muted); }
.steps h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.035em; font-weight: 700; margin: 14px 0 10px; line-height: 1.05; }
.steps p { color: var(--hg-muted); margin: 0; max-width: 30ch; }
.steps .line { height: 1px; width: 100%; margin-bottom: 26px; background: linear-gradient(90deg, var(--hg-red), var(--hg-green) 40%, var(--hg-blue) 70%, transparent); opacity: .5; }

.dish { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.dish .view { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.dish .view holo-splat, .dish .view .fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dish .view .fallback { object-fit: contain; }
.dish .view::before { content: ''; position: absolute; inset: 12% 8% 4%; background: radial-gradient(closest-side, rgba(255,255,255,.06), transparent); border-radius: 50%; }
.dish .meta .price { font-family: var(--hg-font-mono); font-size: 18px; letter-spacing: .1em; color: var(--hg-fg-2); margin-top: 18px; }
.dish .meta .hg-label { display: block; margin-top: 40px; }

.real h2.big .dim { color: var(--hg-muted); }
.real .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: 72px; }
.real .cols p { margin: 10px 0 0; color: var(--hg-muted); }
.real .cols b { font-weight: 600; color: var(--hg-fg); }

/* "Customers trust what's on the plate": each point has its picture right under it, all three the same size (8:5)
   so the row lines up — the AI posters (marked, not scribbled on), our posters fanned out, and the scan they came from. */
.proof .col { min-width: 0; }
.proof .vis { position: relative; aspect-ratio: 8 / 5; margin-top: 32px; }
/* AI posters: two 4:5 frames side by side, colour drained, a small "no" mark and an AI-generated tag */
.proof .fakes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.proof .fake { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.proof .fake img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5) contrast(.95); }
.proof .fake::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.proof .fake .no { position: absolute; z-index: 1; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--hg-red); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.proof .fake .no svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.proof .fake .tag { position: absolute; z-index: 1; left: 10px; bottom: 9px; font-family: var(--hg-font-mono); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
/* our posters: a fan of three, the middle one in front */
.proof .fan canvas { position: absolute; top: 4%; left: 50%; height: 92%; width: auto; aspect-ratio: 4 / 5; border-radius: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55); transform-origin: 50% 100%; transition: transform .6s var(--hg-ease); }
.proof .fan canvas:nth-child(1) { transform: translateX(-50%) translateX(-58%) rotate(-7deg) scale(.92); z-index: 1; }
.proof .fan canvas:nth-child(2) { transform: translateX(-50%) translateX(58%) rotate(7deg) scale(.92); z-index: 1; }
.proof .fan canvas:nth-child(3) { transform: translateX(-50%); z-index: 2; }
@media (hover: hover) {
  .proof .fan:hover canvas:nth-child(1) { transform: translateX(-50%) translateX(-68%) rotate(-9deg) scale(.92); }
  .proof .fan:hover canvas:nth-child(2) { transform: translateX(-50%) translateX(68%) rotate(9deg) scale(.92); }
}
/* the one scan they all came from */
.proof .scan { border-radius: 22px; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent); }
.proof .scan holo-splat, .proof .scan .fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.proof .scan .fallback { object-fit: contain; transition: opacity .6s ease; }
.proof .scan .hg-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10px; pointer-events: none; }

.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: 72px; }
.tpl { text-decoration: none; display: block; }
.tpl .frame { aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--hg-fill); position: relative; transition: transform .6s var(--hg-ease); }
.tpl:hover .frame { transform: translateY(-6px); }
.tpl iframe { position: absolute; top: 0; left: 0; width: 390px; height: 693px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tpl .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.tpl .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 16px; min-width: 0; }

.pipe { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 72px; }
.pipe span { font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.04em; color: var(--hg-muted); }
.pipe span:nth-child(3) { color: var(--hg-fg); }
.formats { display: block; margin-top: 40px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 72px; align-items: start; }
.plan { padding: clamp(28px, 3vw, 44px); border-radius: 24px; background: transparent; }
.plan.hi { background: var(--hg-fill); }
.plan h3 { margin: 0 0 28px; font-size: 30px; letter-spacing: -0.035em; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.plan h3 .hg-label { font-size: 10px; color: var(--hg-green); }
.plan .fee { font-size: clamp(44px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan .fee small { font-size: 15px; letter-spacing: 0; font-weight: 400; color: var(--hg-muted); margin-left: 6px; }
.plan .mo { margin-top: 10px; font-family: var(--hg-font-mono); font-size: 14px; letter-spacing: .06em; color: var(--hg-fg-2); }
.plan ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; color: var(--hg-muted); font-size: 15px; }
.plan ul li::before { content: '— '; color: #444; }
.plan .hgx-btn { margin-top: 36px; }

.custom { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.custom form { display: grid; gap: 18px; }
.custom .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

footer.f { padding: 120px clamp(16px, 4vw, 48px) 40px; display: grid; gap: 40px; }
footer.f .mark { font-size: clamp(64px, 14vw, 220px); margin: 0; }
footer.f .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer.f .row a { text-decoration: none; }
footer.f .row a:hover { color: var(--hg-fg); }
footer.f .links { display: flex; flex-wrap: wrap; gap: 10px 28px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--hg-ease), transform 1.2s var(--hg-ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .steps, .real .cols, .plans, .tpls { grid-template-columns: 1fr; }
  .proof .cols { gap: 64px; }        /* phones: point, picture, point, picture… */
  .proof .vis { margin-top: 24px; }
  .tpls { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; }
  .tpl { scroll-snap-align: start; min-width: 0; }
  .tpl .cap { flex-direction: column; }
  .dish, .custom { grid-template-columns: 1fr; }
  .custom .row { grid-template-columns: 1fr; }
}

/* hero on a phone or a portrait tablet: wordmark + tagline on top, the hologram below, labels at the bottom — all inside the first screen */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hero .bar { padding-block: 22px; }
  .hero .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; }
  .hero .copy { transform: none; padding-top: clamp(8px, 5svh, 48px); }
  .hero h1 { font-size: 18vw; }
  .hero .tag { font-size: clamp(16px, 2.4vw, 22px); margin-top: clamp(14px, 2.4vw, 22px); max-width: 26ch; }
  .hero canvas.scan { left: -4%; width: 108%; top: 0; height: 32%; transform: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 42% 42%, #000, transparent 80%); mask-image: radial-gradient(ellipse 70% 50% at 42% 42%, #000, transparent 80%); }
  .hero .holo { height: 44svh; align-self: end; margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); }
  .hero .cap { gap: 1.2em; font-size: 9px; }
  .hero .foot { flex-direction: column; align-items: start; gap: 12px; padding-block: 18px 24px; }
}
