/* Storefront page components. Tokens, type and the theme layer live in shared/theme.css. */
/* Hero: the words left, the real table right. */
.lh-hero { display: grid; gap: 2.5rem; align-items: center; padding: 1rem 0 2.5rem; }
@media (min-width: 1024px) { .lh-hero { grid-template-columns: 5fr 7fr; gap: 3.5rem; padding: 2.5rem 0 3rem; } }
.lh-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.02; color: var(--parch); }
.lh-hero h1 em { font-style: italic; color: var(--gold); }
.lh-lede { font-size: 1.125rem; line-height: 1.6; color: var(--parch-2); max-width: 34ch; margin-top: 1.25rem; }
.lh-price { margin-top: 2rem; display: flex; align-items: baseline; gap: .6rem; color: var(--parch-2); font-size: .95rem; }
.lh-price strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--parch); }
.lh-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.lh-shot { position: relative; border-radius: 10px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -20px rgba(0,0,0,.7), 0 12px 24px -12px rgba(0,0,0,.6); }
.lh-shot img { display: block; width: 100%; height: auto; }
.lh-url { position: absolute; left: 14px; top: 14px; padding: .35rem .7rem; border-radius: 999px; font-size: .78rem;
  background: rgba(16,14,12,.82); color: var(--parch); border: 1px solid rgba(239,231,216,.14); backdrop-filter: blur(6px); }
.lh-url b { color: var(--gold); font-weight: 600; }

/* One entrance, once, on load: words stagger in, the screenshot uncovers from the bottom (clip-path). */
@media (prefers-reduced-motion: no-preference) {
  .lh-enter > * { animation: lh-rise 520ms var(--ease-out) both; }
  .lh-enter > *:nth-child(2) { animation-delay: 60ms; }
  .lh-enter > *:nth-child(3) { animation-delay: 110ms; }
  .lh-enter > *:nth-child(4) { animation-delay: 150ms; }
  .lh-shot { animation: lh-uncover 900ms 120ms var(--ease-out) both; }
}
@keyframes lh-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes lh-uncover { from { clip-path: inset(0 0 100% 0 round 10px); transform: translateY(14px); } to { clip-path: inset(0 0 0 0 round 10px); } }

/* Two doors under the hero: the Foundry plans on this page, Minecraft on its own. A ruled row, not cards. */
.lh-paths { display: grid; border-top: 1px solid var(--rule); margin-bottom: 1rem; }
@media (min-width: 768px) { .lh-paths { grid-template-columns: 1fr 1fr; } }
.lh-path { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); color: var(--parch); }
@media (min-width: 768px) { .lh-path { border-bottom: 0; padding: 1.25rem 1.5rem 1.25rem 0; } .lh-path + .lh-path { border-left: 1px solid var(--rule); padding-left: 1.5rem; } }
.lh-path-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.lh-path-meta { grid-column: 1; color: var(--parch-2); font-size: .95rem; margin-top: .15rem; }
.lh-path svg { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lh-path:hover .lh-path-name { color: var(--gold); } .lh-path:hover svg { transform: translate(var(--nudge-x, 0), var(--nudge-y, 3px)); } .lh-path + .lh-path { --nudge-x: 3px; --nudge-y: 0; } }

/* Sections: heading speaks for itself, generous air above, tight below. */
.lh-section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .lh-section { padding: 5rem 0; } }
.lh-section h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; color: var(--parch); }
.lh-sub { color: var(--parch-2); font-size: 1.05rem; margin-top: .75rem; max-width: 52ch; }

/* How it works: a ruled sequence, not cards (the order is the information). */

/* Fields (the checkout box and the web hosting form). The edge is --field: 3:1 against the ground, as an input's boundary needs. */
.lh-field { width: 100%; min-height: 46px; border-radius: 6px; background: var(--ink); border: 1px solid var(--field); color: var(--parch); font-size: .95rem; padding: 0 .85rem; }
.lh-field:focus-within, select.lh-field:focus { border-color: var(--gold); }
.lh-addr { display: flex; align-items: center; min-width: 0; }
.lh-addr input { flex: 1; min-width: 0; background: transparent !important; border: 0; outline: none !important; color: var(--parch); font-size: .95rem; height: 44px; padding: 0; }
.lh-addr span { color: var(--parch-3); font-size: .9rem; white-space: nowrap; }
.lh-addr:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
body.lh .lh-addr input:focus-visible { outline: none !important; }   /* the ring sits on the whole field, not the inner input */
.lh-hint { font-size: .8125rem; line-height: 1.45; color: var(--parch-3); margin-top: .4rem; overflow-wrap: anywhere; }

/* Pricing: the two paid plans side by side, prices on one line whatever the descriptions do. */
.lh-plans { margin-top: 2.5rem; display: grid; gap: 1.25rem; max-width: 56rem; }
@media (min-width: 768px) { .lh-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lh-plan { display: flex; flex-direction: column; padding: 2rem; border-radius: 12px; border: 1px solid var(--rule); background: var(--ink-2); }
.lh-plan.lh-pick { background: linear-gradient(180deg, #241a14, var(--ink-2) 55%); border-color: #5a4330; }
.lh-plan h3, .lh-plan h2 { font-size: 1.9rem; line-height: 1.15; color: var(--parch); }
.lh-plan .lh-for { color: var(--parch-2); margin-top: .35rem; font-size: .98rem; line-height: 1.5; }
@media (min-width: 768px) { .lh-plans .lh-plan .lh-for { min-height: 3em; } }
.lh-assure { margin-top: 1.25rem; color: var(--parch); font-size: .95rem; max-width: 56rem; }
.lh-player { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--parch-2); font-size: .95rem; max-width: 56rem; }
.lh-player a, .lh-sub a { color: var(--parch); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 3px; }
.lh-plan .lh-cost { margin-top: 1.5rem; display: flex; align-items: baseline; gap: .4rem; color: var(--parch-2); }
.lh-plan .lh-cost span:first-child { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--parch); font-weight: 600; }
.lh-plan ul { margin: 1.5rem 0 2rem; border-top: 1px solid var(--rule); }
.lh-plan li { padding: .7rem 0; border-bottom: 1px solid var(--rule); color: var(--parch); font-size: .95rem; display: flex; justify-content: space-between; gap: 1rem; }
.lh-plan li span:last-child { color: var(--parch-2); text-align: right; }
.lh-plan .lh-btn { margin-top: auto; width: 100%; }
.lh-note { color: var(--gold); font-size: .9rem; font-weight: 600; margin-top: .25rem; }
.lh-more { margin-top: 2rem; display: grid; gap: .5rem 2rem; align-items: baseline; color: var(--parch-2); font-size: .95rem; }
@media (min-width: 900px) { .lh-more { grid-template-columns: auto repeat(4, auto); justify-content: start; } }
.lh-more b { color: var(--parch); font-weight: 600; }
.lh-cost span:first-child, .lh-price strong { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.lh-player.hidden { display: none; }
/* Features: heading on the left, ruled list on the right */
.lh-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .lh-split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.lh-points { margin: 0; border-top: 1px solid var(--rule); }
.lh-points > div { display: grid; gap: .35rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .lh-points > div { grid-template-columns: 14rem 1fr; gap: 2rem; align-items: baseline; } }
.lh-points dt { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--parch); }
.lh-points dd { margin: 0; color: var(--parch-2); font-size: 1rem; line-height: 1.6; max-width: 46ch; }

/* Atlas: tabs over the real screens, then what it does */
.lh-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 2.5rem 0 1rem; border-bottom: 1px solid var(--rule); }
.lh-tabs button { position: relative; padding: .7rem 1rem; font-size: .95rem; font-weight: 500; color: var(--parch-2); transition: color 160ms ease; }
.lh-tabs button::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 220ms var(--ease-out); }
.lh-tabs button[aria-selected="true"] { color: var(--parch); }
.lh-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .lh-tabs button:hover { color: var(--parch); } }
.lh-frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--ink-2); }
.lh-frame img { display: block; width: 100%; height: auto; }
.lh-caption { margin-top: .75rem; color: var(--parch-3); font-size: .85rem; }
.lh-grid3 { margin-top: 3rem; display: grid; gap: 0 2.5rem; }
@media (min-width: 700px) { .lh-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lh-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lh-grid3 > div { padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.lh-grid3 dt { color: var(--parch); font-weight: 600; font-size: 1.02rem; }
.lh-grid3 dd { margin: .35rem 0 0; color: var(--parch-2); font-size: .95rem; line-height: 1.55; }

/* FAQ: a ruled list, the sign turns to a minus when open */
.lh-faq { border-top: 1px solid var(--rule); }
.lh-faq details { border-bottom: 1px solid var(--rule); }
.lh-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.15rem 0; color: var(--parch); font-weight: 500; font-size: 1.05rem; }
.lh-faq summary::-webkit-details-marker { display: none; }
.lh-faq summary::after { content: "+"; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform 220ms var(--ease-out); flex: none; }
.lh-faq details[open] summary::after { transform: rotate(45deg); }
.lh-faq details > div { padding: 0 0 1.25rem; color: var(--parch-2); font-size: 1rem; line-height: 1.65; max-width: 62ch; }
.lh-faq a { color: var(--parch); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 3px; }

/* Closing call to action */
.lh-cta { padding: 4.5rem 0 1rem; border-top: 1px solid var(--rule); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .lh-cta { grid-template-columns: 1fr auto; } }
.lh-cta h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; color: var(--parch); }
.lh-cta p { color: var(--parch-2); margin-top: .5rem; font-size: 1.05rem; }

/* Web hosting */
.lh-plans3 { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .lh-plans3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lh-form { margin-top: 2.5rem; padding: 2rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--ink-2); display: grid; gap: 1.25rem; }
.lh-form h3, .lh-form h2 { font-size: 1.75rem; color: var(--parch); }
.lh-form label { display: block; font-size: .9rem; font-weight: 600; color: var(--parch); margin-bottom: .45rem; }
.lh-form .lh-field { padding: .65rem .85rem; }
.lh-form textarea.lh-field { min-height: 7rem; line-height: 1.5; }
.lh-form .lh-check { display: flex; gap: .75rem; align-items: center; min-height: 44px; font-weight: 400; color: var(--parch-2); cursor: pointer; }
.lh-form .lh-check input { width: 1.25rem; height: 1.25rem; flex: none; }
.lh-form details { color: var(--parch-2); font-size: .95rem; }
.lh-form details summary { cursor: pointer; color: var(--parch); }

/* Long-form pages: guides, legal, contact */
.lh-prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.25rem) !important; line-height: 1.06; }
.lh-prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem) !important; line-height: 1.15; padding-top: 1.5rem !important; }
.lh-prose h3 { font-size: 1.3rem !important; }
.lh-prose p, .lh-prose li { font-size: 1.0625rem !important; line-height: 1.7 !important; color: #d6ccbb; max-width: 62ch; }
.lh-prose h1 + p { font-size: 1.2rem !important; color: var(--parch-2); }
.lh-prose details summary { font-size: 1rem !important; }
.lh-prose details > div { font-size: 1rem !important; line-height: 1.65 !important; }
.lh-prose code { color: var(--parch); background: var(--ink-3); padding: .1em .35em; border-radius: 4px; }

/* Modal */
.lh-modal-card { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lh-modal-card .flex > .lh-btn { flex: none; }
.lh-frame img.hidden { display: none; }
@media (min-width: 900px) { #storefront-faq > div:first-child { position: sticky; top: 6rem; } }
/* Guide FAQs and other details blocks read as a ruled list too */
.lh-prose details { background: none !important; border: 0 !important; border-bottom: 1px solid var(--rule) !important; border-radius: 0 !important; }
.lh-prose details:first-of-type { border-top: 1px solid var(--rule) !important; }
.lh-prose details summary { list-style: none; padding: 1.1rem 0 !important; display: flex; justify-content: space-between; gap: 1.5rem; }
.lh-prose details summary::-webkit-details-marker { display: none; }
.lh-prose details summary::after { content: "+"; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform 220ms var(--ease-out); }
.lh-prose details[open] summary::after { transform: rotate(45deg); }
.lh-prose details > div { padding: 0 0 1.2rem !important; border: 0 !important; }
.lh-prose .space-y-3:has(> details) > * + * { margin-top: 0 !important; }

/* A standalone page that opens with a section's content (web hosting). */
.lh-page-head { padding: 1.5rem 0 1rem; }
.lh-page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; color: var(--parch); }

/* ── Minecraft page: the same world, one accent of its own: blocks. A gold block grid behind the hero, and the
   memory of each size drawn as blocks. Everything else is the shared storefront system. ── */
.mc-open-only.hidden, .mc-soon-only.hidden, .mc-buy.hidden { display: none !important; }
.mc-hero { position: relative; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .mc-hero { grid-template-columns: 5fr 7fr; } }
.mc-screen, .mc-screen * { min-width: 0; }
.mc-hero > :not(.mc-grid) { position: relative; }
.mc-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--gold) 18%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--gold) 18%, transparent) 1px, transparent 1px);
  background-size: 36px 36px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 74% 50%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 55% 75% at 74% 50%, #000 10%, transparent 72%); }
.mc-runs { margin-top: 1.5rem; color: var(--parch-3); font-size: .9rem; }
.mc-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9em; color: var(--parch); }

/* The Multiplayer screen, drawn in the palette. The one animated moment: the address types itself, the server answers. */
.mc-screen > div { border-radius: 10px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 12px 24px -12px rgba(0,0,0,.6); }
.mc-screen-bar { padding: .6rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--ink-3); color: var(--parch-2); font-size: .8125rem; }
.mc-screen-body { padding: 1.4rem; display: grid; gap: 1.25rem; }
.mc-screen-label { color: var(--parch-2); font-size: .8125rem; margin-bottom: .4rem; }
.mc-screen-field { white-space: nowrap; padding: .65rem .85rem; border-radius: 6px; border: 1px solid var(--field); background: var(--ink); color: var(--parch);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .95rem; overflow: hidden; }
.mc-addr { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: calc(var(--n, 26) * 1ch); padding-right: 2px; box-shadow: inset -2px 0 var(--gold);
  animation: mc-type 2.2s steps(var(--n, 26), end) .5s backwards, mc-caret 1s step-end 2.7s 3 forwards; }
.mc-answer { display: flex; align-items: center; gap: 1rem; padding: .8rem; border-radius: 6px; background: var(--ink); border: 1px solid var(--rule); animation: mc-in .5s var(--ease-out) 2.9s backwards; }
.mc-px { width: 56px; height: 56px; flex: none; border-radius: 4px; background: var(--ink-2); shape-rendering: crispEdges; }
.mc-px rect { fill: var(--red); } .mc-px rect.g { fill: var(--gold); }
.mc-answer-name { color: var(--parch); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-answer-motd { color: var(--parch-2); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-answer-ping { text-align: right; flex: none; }
.mc-bars { display: flex; align-items: flex-end; justify-content: flex-end; gap: 3px; height: 16px; }
.mc-bar { width: 4px; background: var(--gold); animation: mc-in .25s var(--ease-out) backwards; }
.mc-bar:nth-child(1) { height: 6px; animation-delay: 3.0s } .mc-bar:nth-child(2) { height: 8px; animation-delay: 3.1s }
.mc-bar:nth-child(3) { height: 11px; animation-delay: 3.2s } .mc-bar:nth-child(4) { height: 14px; animation-delay: 3.3s }
.mc-bar:nth-child(5) { height: 16px; animation-delay: 3.4s }
.mc-count { margin-top: .35rem; color: var(--parch-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }
@keyframes mc-type { from { width: 0 } }
@keyframes mc-caret { 50% { box-shadow: none } to { box-shadow: none } }
@keyframes mc-in { from { opacity: 0; transform: translateY(6px) } }
@media (prefers-reduced-motion: reduce) { .mc-addr, .mc-answer, .mc-bar { animation: none; } .mc-addr { box-shadow: none; } }

/* Sizes: a ruled list. Memory leads, drawn as six blocks with the size's share lit. */
.mc-sizes { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.mc-size { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .mc-size { grid-template-columns: 8rem minmax(0, 1fr) 8rem auto; gap: 2.5rem; } }
.mc-mem { display: grid; gap: .6rem; }
.mc-gb { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 3.2rem; line-height: .9; color: var(--parch); font-variant-numeric: lining-nums; }
.mc-gb small { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: .95rem; font-weight: 600; color: var(--parch-2); margin-left: .3rem; }
.mc-blocks { display: flex; gap: 3px; }
.mc-blocks i { width: 12px; height: 12px; border: 1px solid var(--field); background: transparent; }
.mc-blocks i.on { background: var(--gold); border-color: var(--gold); }
.mc-what h3 { font-size: 1.9rem; line-height: 1.1; color: var(--parch); }
.mc-tag { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: .875rem; font-weight: 600; color: var(--gold); margin-left: .5rem; vertical-align: middle; }
.mc-what p { margin-top: .3rem; color: var(--parch-2); font-size: .98rem; }
.mc-store { grid-column: 2; color: var(--parch-2); font-size: .95rem; }
.mc-buy { grid-column: 2; display: flex; align-items: center; gap: 1.25rem; }
@media (min-width: 900px) { .mc-store, .mc-buy { grid-column: auto; } .mc-store { text-align: right; } .mc-buy { justify-content: flex-end; } }
.mc-price { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.6rem; color: var(--parch); font-variant-numeric: lining-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .mc-size { transition: background-color 160ms ease; } }

/* Atlas: a short ruled list with block bullets */
.mc-ticks { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.mc-ticks li { display: flex; gap: .85rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--rule); color: var(--parch); font-size: .98rem; }
.mc-ticks li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--gold); transform: translateY(-1px); }

/* Guides: ruled rows that are links */
.mc-guides > a { display: block; padding: 1.25rem 0; border-top: 1px solid var(--rule); color: var(--parch-2); font-size: .95rem; line-height: 1.55; }
.mc-guides > a b { display: block; color: var(--parch); font-weight: 600; font-size: 1.02rem; margin-bottom: .3rem; }
@media (hover: hover) and (pointer: fine) { .mc-guides > a:hover b { color: var(--gold); } }
.lh-navlink[aria-current="page"] { color: var(--parch); }
