/* 7heaven.cloud — marketing site layout.
   Desktop follows pages/landing.html (1440), ≤700px follows pages/landing-mobile.html (390).
   Breakpoints: 1100px (bento → 6 col, compact header), 700px (mobile layout). */

/* Decorative overflow (hero glow) must not widen the page; clip keeps sticky working. */
main { overflow-x: clip; }

/* ============ Header ============ */

.site-header { position: relative; z-index: 20; }
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}
.site-header .brand { padding-block: 5px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.site-nav a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--surface-2); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__menu { display: none; }
/* Menu icon morphs into × when open */
.menu-bar { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease-out), opacity .2s ease; }
[aria-expanded="true"] .menu-bar--1 { transform: translateY(4px) rotate(45deg); }
[aria-expanded="true"] .menu-bar--2 { opacity: 0; }
[aria-expanded="true"] .menu-bar--3 { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--hairline); padding-block: 12px 20px; }
.mobile-menu .container { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  color: var(--ink-muted);
}
.mobile-menu__link { transition: background-color var(--t-fast), color var(--t-fast); }
.mobile-menu__link:hover { background: var(--surface); color: var(--ink); }
.mobile-menu:not([hidden]) { animation: menu-in .35s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu__login { margin-top: 12px; }

@media (min-width: 1101px) { .mobile-menu { display: none !important; } }

@media (max-width: 1100px) {
  .site-header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--surface-2);
    background: rgba(11, 15, 19, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .site-header__bar { flex-wrap: nowrap; gap: 12px; min-height: var(--header-h); padding-block: 0; }
  .site-nav, .site-header__login { display: none; }
  .site-header__menu { display: grid; }
  .site-header__cta { min-height: 44px; padding: 0 16px; font-size: 14px; }
}

@media (max-width: 700px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand__mark { width: 28px; height: 28px; }
  .site-header .brand__name { font-size: 17px; }
  .site-header .brand__tld { display: none; }
  .site-header__actions { gap: 8px; }
}

/* ============ Hero ============ */

.hero { position: relative; padding-block: 48px 40px; }
.hero__glow {
  position: absolute;
  top: -5%;
  right: -10%;
  width: 70%;
  height: 110%;
  background: radial-gradient(closest-side, rgba(232, 116, 58, .22), rgba(232, 116, 58, 0));
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "copy art" "form art";
  column-gap: 32px;
  align-items: center;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__badge { margin-bottom: 32px; }
.hero__lead { margin-top: 32px; }
.hero__art { grid-area: art; padding-block: 24px; }
.hero__art .iso { width: 100%; max-width: 640px; margin-inline: auto; }
.hero__form { grid-area: form; align-self: start; max-width: 560px; margin-top: 36px; }
.hero__status { margin-top: 14px; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.hero__status p { margin: 0; }
.hero__status--ok p { color: var(--success); }
.hero__status--taken p { color: var(--danger); }
.hero__status-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "form"; }
  .hero__art { justify-self: center; width: 100%; max-width: 460px; padding-block: 28px 0; }
  .hero__form { margin-top: 24px; }
  .hero__glow { top: 30%; right: auto; left: 10%; width: 100%; height: 45%; }
}

@media (max-width: 700px) {
  .hero { padding-block: 32px 8px; }
  .hero__badge { gap: 8px; margin-bottom: 22px; padding: 7px 12px; font-size: 11px; letter-spacing: .06em; }
  .hero__badge .dot { width: 6px; height: 6px; }
  .hero__lead { margin-top: 20px; }
  .hero__art { max-width: 320px; }
  .hero__glow { background: radial-gradient(closest-side, rgba(232, 116, 58, .25), rgba(232, 116, 58, 0)); }
  .hero__form .search { flex-direction: column; gap: 10px; padding: 0; border: 0; background: transparent; }
  .hero__form .search .input {
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid var(--hairline-strong);
    background: var(--surface);
  }
  .hero__form .search .input:focus { border-color: var(--dawn); }
  .hero__form .search .btn { width: 100%; min-height: 52px; }
}

/* ============ Services bento ============ */

.section--services { padding-block: 56px 96px; }

.bento { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.bento__text { margin-top: 10px; color: var(--ink-muted); }
.cell--ember .bento__text { color: var(--on-ember-muted); }

.bento--domains, .bento--mail { min-height: 400px; }
.bento--domains__art { position: absolute; right: 24px; bottom: 24px; height: 220px; }
.bento--domains__art .iso { width: auto; height: 100%; max-width: 100%; }
.bento--domains__copy { position: relative; max-width: 420px; }
.bento--domains .tags { margin-top: 20px; }

.bento--mail__at { font-size: clamp(110px, 13vw, 210px); line-height: .8; font-weight: 900; }
.bento--mail__title { font-size: 26px; line-height: 1.1; }

.bento--small { min-height: 360px; }
.bento--ssl__icon { width: 120px; height: 120px; }
.bento--migrate { justify-content: flex-start; }
.bento--migrate__art { flex: 1 1 auto; display: flex; align-items: center; max-width: 420px; }
.bento--migrate__art .iso { width: 100%; height: auto; }

.bento--day { display: flex; }
.bento--day__copy { flex: 1 1 360px; padding: 40px; border-right: 1px solid var(--hairline); }
.bento--day__title { margin-top: 20px; font-size: clamp(30px, 4vw, 60px); line-height: .95; }
.bento--day__term { flex: 2 1 480px; }

@media (max-width: 1100px) {
  .bento--domains__art { top: 40px; right: 12px; bottom: auto; height: 170px; }
}

@media (max-width: 900px) {
  .bento--day { flex-direction: column; }
  .bento--day__copy { flex: none; border-right: 0; }
  .bento--day__term { flex: none; border-top: 1px solid var(--hairline); }
}

@media (max-width: 700px) {
  .section--services { padding-block: 48px 0; }
  .bento--domains { min-height: 300px; }
  .bento--domains__art { height: 150px; }
  .bento--domains__copy { margin-top: 150px; }
  .bento--domains .h-block { font-size: 34px; line-height: .98; }
  .bento--domains .tags { gap: 6px; margin-top: 16px; }
  .bento--domains .tag { padding: 4px 10px; font-size: 12px; }

  .bento--mail { min-height: 0; justify-content: flex-start; gap: 12px; }
  .bento--mail__at { font-size: 130px; line-height: .85; }
  .bento--mail__title { font-size: 22px; line-height: 1.15; }
  .bento--mail .bento__text { font-size: 14px; line-height: 22px; }

  .bento--small { min-height: 0; justify-content: flex-start; gap: 12px; padding: 20px; }
  .bento--small .bento__text { margin-top: 8px; font-size: 13px; line-height: 19px; }
  .bento--ssl__icon { width: 56px; height: 56px; }
  .bento--ssl__icon rect, .bento--ssl__icon path { stroke-width: 5; }
  .bento--migrate__art { flex: none; height: 56px; }

  .bento--day__copy { padding: 24px 24px 16px; }
  .bento--day__title { margin-top: 12px; font-size: 30px; line-height: 1; }
  .bento--day__term { padding: 20px 24px 24px; font-size: 12px; line-height: 24px; }
}

/* ============ Packages ============ */

.section--packages { padding-block: 40px 96px; }

.plan { display: flex; flex-direction: column; gap: 22px; }
.plan__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--on-ember);
  color: var(--dawn);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: .08em;
}
.plan__badge--spacer { display: none; }
/* Stacks share one scale (tools/gen_plan_stacks.py) and stand on one baseline: a staircase */
.plan__art { display: flex; align-items: flex-end; height: 167px; }
.plan__art .iso { width: auto; height: auto; max-width: 100%; }
.plan__name { margin-top: 6px; font-size: 34px; line-height: 1.1; }
.plan__features { flex: 1 1 auto; font-size: 15px; }
.plan__price { display: flex; flex-direction: column; gap: 6px; }
.plan__year { color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.cell--dawn .plan__year { color: var(--on-dawn-muted); }

.carousel-hint { display: none; }
.carousel-dots { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--hairline-strong);
  transition: width .25s ease, background-color .25s ease;
}
.carousel-dots .is-active { width: 20px; background: var(--ember); }

.singles { margin-top: 56px; }
.singles__title { margin-bottom: 16px; }
.single { display: flex; flex-direction: column; gap: 10px; min-height: 170px; padding: 24px; }
.single__name { font-size: 22px; line-height: 1.1; }
.single__desc { flex: 1 1 auto; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.single__price { font-size: 12px; line-height: 18px; }

/* Plans stay three per row down to 900px, then become a swipe carousel. */
@media (max-width: 1100px) {
  .plans > .plan { grid-column: span 4; padding: 24px; }
  .plan__name { font-size: 28px; }
  .plan .price__value { font-size: 36px; }
}

@media (max-width: 900px) {
  .carousel-hint { display: block; }
  .carousel-dots { display: flex; }
  .section--packages .section-head > p:not(.carousel-hint) { display: none; }

  .plans {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 min(300px, 82vw); gap: 18px; scroll-snap-align: start; }
  .plan__badge { position: static; align-self: flex-start; padding: 5px 9px; font-size: 10px; }
  .plan__art { height: 117px; }
  .plan__art .iso { zoom: .7; }
  .plan__name { margin-top: 4px; }
  .plan__features { gap: 8px; font-size: 14px; }
}

@media (max-width: 700px) {
  .section--packages { padding-block: 72px 0; }
  .section--packages .section-head { display: block; }
  .section--packages .section-head p { margin-top: 8px; font-size: 15px; }

  .singles { margin-top: 32px; }
  .singles__title { margin-bottom: 12px; font-size: 11px; }
  .singles .grid { gap: 10px; }
  .single { gap: 6px; min-height: 96px; padding: 18px; border-radius: 16px; }
  .single__name { font-size: 17px; line-height: 1.15; }
  .single__price { margin-top: auto; color: var(--ink-muted); font-size: 11px; line-height: 16px; }
}

/* ============ Configurator ============ */

.section--config { padding-block: 0 96px; }

.cfg__controls { display: flex; flex-direction: column; gap: 32px; padding: 36px 40px; }
.cfg__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.cfg__group legend { margin-bottom: 12px; padding: 0; }

.cfg__name { margin-top: -12px; }
.cfg__name .eyebrow { display: block; margin-bottom: 12px; }
.cfg__name-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--ground);
  transition: border-color var(--t-fast);
}
.cfg__name-field:hover { border-color: var(--hairline-strong); }
.cfg__name-field:focus-within { border-color: var(--dawn); }
.cfg__name-field .input { border: 0; background: transparent; font-family: var(--font-mono); outline: none; }
.cfg__name-zone { flex: none; padding-right: 18px; color: var(--ink-muted); font-size: 15px; }
.cfg__name-zone:empty { display: none; }
.cfg__name-note { margin-top: 8px; color: var(--ink-muted); font-size: 12px; line-height: 18px; }

.cfg__boxes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.cfg__boxes-head label { font-size: 16px; font-weight: 600; }
.cfg__boxes-value { font-size: 28px; line-height: 1; }
.cfg__boxes-value .t-mono { font-size: 13px; font-weight: 400; color: var(--ink-muted); }

.cfg__switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.cfg__switch-title { font-size: 16px; font-weight: 600; }
.cfg__switch-text { color: var(--ink-muted); font-size: 14px; }

.cfg__aside { display: flex; flex-direction: column; gap: 16px; }
.cfg__summary { flex: 1 1 auto; display: flex; flex-direction: column; gap: 20px; }
.cfg__period-note { margin-top: 10px; color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.cfg__hint { color: var(--ember-text); font-family: var(--font-mono); font-size: 12px; line-height: 18px; }

.cfg__lines { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.cfg__lines:empty { display: none; }
.cfg__lines-group { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.cfg__lines-title { margin-bottom: -2px; }
.cfg__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.cfg__line dt { color: var(--ink-muted); }
.cfg__line dd { margin: 0; font-family: var(--font-mono); white-space: nowrap; }
.cfg__line--discount dd { color: var(--success); }
.cfg__line--strong { padding-top: 12px; border-top: 1px dashed var(--hairline); }
.cfg__line--strong dt { color: var(--ink); font-weight: 600; }

.cfg__total { display: flex; flex-direction: column; gap: 18px; }
.cfg__sum { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 12px; }
.cfg__sum-label { font-weight: 600; }
.cfg__sum-amount { justify-self: end; white-space: nowrap; }
.cfg__sum-value { font-size: 48px; line-height: 1; font-weight: 900; }
.cfg__sum-value.is-long { font-size: 36px; }
.cfg__sum-unit { font-size: 13px; }
.cfg__sum-sub { grid-column: 1 / -1; justify-self: end; color: var(--on-ember-muted); font-size: 12px; line-height: 18px; text-align: right; }
.cfg__sum-sub:empty { display: none; }
.cfg__note { color: var(--on-ember-muted); font-size: 12px; }

@media (max-width: 700px) {
  .section--config { padding-block: 72px 0; }
  .section--config .section-head { margin-bottom: 20px; }

  .cfg { display: flex; flex-direction: column; gap: 12px; }
  .cfg__aside { display: contents; }
  .cfg__controls { gap: 26px; padding: 22px; }
  .cfg__boxes-head { gap: 12px; margin-bottom: 10px; }
  .cfg__boxes-head label { font-size: 15px; }
  .cfg__boxes-value { font-size: 24px; }
  .range-ticks { margin-top: 8px; font-size: 10px; }
  .cfg__switch-row { gap: 12px; padding-top: 18px; }
  .cfg__switch-title { font-size: 15px; }
  .cfg__switch-text { font-size: 13px; }
  .switch { width: 60px; height: 34px; }
  .switch::after { width: 26px; height: 26px; }
  .switch[aria-checked="true"]::after { transform: translateX(26px); }

  .cfg__summary { gap: 16px; padding: 22px; }
  .cfg__line { font-size: 13px; }

  /* Sticky total bar — the one place a shadow is allowed */
  .cfg__total {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
  .cfg__sum { display: flex; flex-direction: column; gap: 0; min-width: 0; }
  .cfg__sum-label { font-family: var(--font-mono); font-size: 10px; font-weight: 400; line-height: 14px; letter-spacing: .1em; }
  .cfg__sum-value { font-size: 28px; line-height: 1.15; }
  .cfg__sum-value.is-long { font-size: 22px; }
  .cfg__sum-unit { font-size: 12px; }
  .cfg__sum-sub { font-size: 10px; line-height: 14px; text-align: left; }
  .cfg__order { flex: none; min-height: 48px; padding: 0 20px; }
}

/* ============ Migration panel (light) ============ */

.section--migrate { padding-block: 0 96px; }
.migrate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: var(--radius-xl);
  background: var(--ground);
  color: var(--ink);
}
.migrate__title { font-size: clamp(36px, 5.4vw, 80px); line-height: .94; font-weight: 900; }
.migrate__body { display: flex; flex-direction: column; gap: 22px; }
.migrate__steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 24px; }
.migrate__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--hairline);
}
.migrate__num { flex: none; color: var(--ember-text); font-size: 16px; }
.migrate .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .migrate { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 22px; border-radius: 24px; }
  .migrate__steps { font-size: 14px; line-height: 21px; }
  .migrate__steps li { padding: 14px 16px; }
  .migrate .btn { align-self: stretch; }
}
@media (max-width: 700px) {
  .section--migrate { padding-block: 72px 0; }
  .migrate__title { font-size: 36px; }
}

/* ============ FAQ ============ */

.section--faq { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 0 96px; }
.faq__title { flex: 1 1 300px; font-size: clamp(32px, 4vw, 60px); line-height: .95; }
.faq__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 700px) {
  .section--faq { flex-direction: column; gap: 10px; padding-block: 72px 0; }
  .faq__title { flex: none; margin-bottom: 10px; font-size: 32px; line-height: 1; }
  .faq__list { flex: none; }
}

/* ============ Footer ============ */

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer > .container { padding-block: 64px 32px; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__col .eyebrow { margin-bottom: 4px; }
.site-footer__col a, .site-footer__col > span, .site-footer__status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__col a { transition: color var(--t-fast); }
.site-footer__col a:hover { color: var(--ember-text); }
.site-footer__status { gap: 8px; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-block: -12px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.motion-toggle:hover { border-color: var(--hairline-strong); color: var(--ink); }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.motion-toggle__play { display: none; }
[data-motion="paused"] .motion-toggle__pause { display: none; }
[data-motion="paused"] .motion-toggle__play { display: block; }
.site-footer__word {
  font-size: clamp(64px, 15.5vw, 230px);
  line-height: .82;
  font-weight: 900;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .site-footer { margin-top: 72px; border-top: 0; }
  .site-footer > .container { padding-block: 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-bottom: 0; padding-block: 28px; border-top: 1px solid var(--hairline); }
  .site-footer__col { font-size: 14px; }
  .site-footer__col a, .site-footer__col > span, .site-footer__status { min-height: 40px; }
  .site-footer__word { font-size: 16.5vw; }
  .site-footer__bottom { margin-top: 20px; padding-top: 16px; font-size: 11px; }
}
