/* Frontend skin based on the supplied ice-blue desktop and phone comp. */
:root {
  --display: Georgia, 'Times New Roman', serif;
  --ice-white: #f5fbff;
  --ice-ink: #0b2d51;
  --ice-frame: #9adaff9c;
  --ice-card: linear-gradient(145deg, #edf8ff, #bed9ee);
  --ice-action: linear-gradient(155deg, #1875ba, #0a427b);
  --ice-shell: radial-gradient(ellipse at 77% 24%, #367fb8 0, transparent 57%), linear-gradient(143deg, #235a90, #0c4d86 58%, #103b6d);
  --ice-back: radial-gradient(ellipse at 16% 14%, #1f70af 0, transparent 56%), linear-gradient(150deg, #084880, #05346b 72%, #082b56);
  --ice-frame-width: min(1170px, 100% - 22px);
  --ice-frame-shadow: inset 0 0 0 3px #a2d9ff20, 0 23px 52px #031f4870;
  --ice-focus: #79d6ff;
  --ice-foot: #cce4fa;
  --ice-light-action: linear-gradient(150deg, #f9fdff, #c2e3fa);
  --ice-light-action-ink: #092f56;
}
[data-theme="dark"] {
  --ice-ink: #eff8ff;
  --ice-card: linear-gradient(145deg, #193d61, #102d4c);
  --ice-action: linear-gradient(155deg, #1875ba, #0a427b);
  --ice-shell: radial-gradient(ellipse at 77% 24%, #235684 0, transparent 57%), linear-gradient(143deg, #17375c, #113659 58%, #0a2749);
  --ice-back: radial-gradient(ellipse at 16% 14%, #123b68 0, transparent 56%), linear-gradient(150deg, #092a50, #061d3a 72%, #07162b);
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; text-transform: none; }
h1, h2 { font-weight: 700; }
.btn, .btn.accent, .btn.ghost, legend, .type-opt label b, .price-table th, .price-table td.price, .summary-card .total { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.btn, .btn.accent { border-radius: 11px; font-weight: 650; }
.btn.ghost { border-width: 1px; }
.site-header, [data-theme="dark"] .site-header { background: transparent; padding: 12px 0 0; }
.site-header .wrap, [data-theme="dark"] .site-header .wrap {
  position: relative; width: var(--ice-frame-width); height: 60px; padding: 0 10px;
  color: var(--ice-white); background: linear-gradient(116deg, #316698, #104d84 78%);
  border: 1px solid var(--ice-frame); border-radius: 14px 14px 0 0; gap: 8px;
  box-shadow: inset 0 1px 1px #d7f5ff52, 0 8px 22px #041d4140;
}
.site-header .brand, [data-theme="dark"] .site-header .brand {
  color: var(--ice-white); font: 700 clamp(1.28rem, 5vw, 1.85rem)/1 var(--display);
  letter-spacing: -.035em; text-transform: none; white-space: nowrap; padding-left: 5px;
}
.site-header .brand-mark { display: none; }
.site-header .theme-toggle, [data-theme="dark"] .site-header .theme-toggle { color: #effaff; border-color: #c7eaff55; width: 44px; height: 44px; }
.site-header .menu-toggle, [data-theme="dark"] .site-header .menu-toggle { background: #082e571e; margin-left: 0; width: 44px; height: 44px; border: 1px solid #bde6ff55; }
.site-header .menu-toggle::before, .site-header .menu-toggle::after { left: 11px; right: 11px; }
.site-header .menu-toggle::before { top: 14px; }
.site-header .menu-toggle::after { top: 26px; }
.site-header .menu-toggle[aria-expanded="true"]::before, .site-header .menu-toggle[aria-expanded="true"]::after { top: 20px; }
.site-header .nav { background: #143e68; border: 1px solid var(--ice-frame); left: 0; right: 0; }
:root .site-header .nav a:not(.btn), :root .site-header .nav a[aria-current="page"]:not(.btn) { color: var(--ice-white); font: 600 16px/1.2 var(--sans); }
.site-header .nav a:not(.btn) { border-color: #c9eaff35; min-height: 44px; }
.site-header .nav a[aria-current="page"]:not(.btn), .site-header .nav a:not(.btn):hover { background: #b8e6ff22; }
:root .site-header .nav a.btn, :root .site-header .nav a.btn:hover, .glacier-actions .btn.accent, .mobile-cta .btn {
  background: var(--ice-light-action); border: 1px solid #d6eeff; color: var(--ice-light-action-ink);
  box-shadow: inset 0 1px 1px #fff8; font-weight: 700;
}
:root .site-header .nav a.btn:hover, .glacier-actions .btn.accent:hover, .mobile-cta .btn:hover { background: #fff; border-color: #fff; color: var(--ice-light-action-ink); }
/* The same frame holds the homepage artwork and the interior reading surface. */
body, [data-theme="dark"] body { background: var(--ice-back); min-height: 100vh; }
body[data-page="home"] { color: var(--ice-white); }
.glacier-home, .glacier-interior {
  width: var(--ice-frame-width); margin: 0 auto;
  background: var(--ice-shell); border: 1px solid var(--ice-frame); border-top: 0; border-radius: 0 0 17px 17px;
  box-shadow: var(--ice-frame-shadow);
}
.glacier-home { color: var(--ice-white); padding: 13px 13px 20px; }
.glacier-home section { padding: 0; }
.glacier-home h1, .glacier-home h2 { color: inherit; }
.glacier-home h2 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.1; margin: 0 0 10px; }
.glacier-home svg { width: 21px; height: 21px; flex: none; vertical-align: middle; }
.glacier-home :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline: 3px solid var(--ice-focus); outline-offset: 2px; }
.glacier-hero { display: none; }
.glacier-feature { border: 1px solid #d8ecfa9c; border-radius: 13px; overflow: hidden; background: var(--ice-card); color: var(--ice-ink); box-shadow: 0 9px 22px #09284d32; }
.glacier-feature > img { display: block; width: 100%; height: clamp(130px, 49vw, 230px); object-fit: cover; object-position: 50% 39%; }
.glacier-feature-body { padding: 12px 13px 13px; }
.glacier-feature-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 9px; }
.glacier-feature-title > svg { margin-top: 4px; }
.glacier-feature-title h1 { font: 750 1.1rem/1.05 var(--sans); margin: 0; letter-spacing: -.01em; }
.glacier-feature-title span { display: block; font-weight: 630; line-height: 1.25; font-size: .86rem; }
.glacier-feature-title strong { padding: 3px 9px; font-size: 1.07rem; line-height: 1.4; background: #5691be2b; border-radius: 8px; }
.glacier-feature p { font-size: .95rem; line-height: 1.3; margin: 9px 0 8px; }
.glacier-feature ul { padding: 0; margin: 0 0 11px; list-style: none; }
.glacier-feature li { font-size: .9rem; display: flex; align-items: center; gap: 10px; min-height: 32px; border-top: 1px solid #446d9342; }
.glacier-feature li:last-child { border-bottom: 1px solid #446d9342; }
.glacier-feature li svg { width: 16px; height: 16px; }
.glacier-feature .btn { min-height: 44px; width: 100%; gap: 10px; background: var(--ice-action); color: #fff; border-color: #388bc6; }
.glacier-feature .btn:hover { background: #0d4f86; color: #fff; }
.glacier-catalog { margin-top: 20px; }
.glacier-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.glacier-type { min-width: 0; display: flex; flex-direction: column; background: var(--ice-card); color: var(--ice-ink); border: 1px solid #c7e9ff9c; border-radius: 12px; overflow: hidden; text-decoration: none; box-shadow: 0 5px 12px #031b432e, inset 0 1px 1px #fff7; }
.glacier-type:hover { color: var(--ice-ink); border-color: #effaff; box-shadow: 0 6px 18px #021e495e, inset 0 -3px #4cabdf; }
.glacier-type-art, .glacier-type-picture { display: none; }
.glacier-type-meta { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 8px; min-height: 64px; }
.glacier-type-meta > svg { width: 17px; height: 17px; }
.glacier-type-meta b, .glacier-type-meta small, .glacier-type-meta strong { display: block; line-height: 1.05; }
.glacier-type-meta b { font-size: .89rem; font-weight: 750; }
.glacier-type-meta small { font-size: .69rem; font-weight: 600; margin-top: 2px; }
.glacier-type-meta strong { font-size: 1rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.glacier-type-arrow svg { width: 15px; height: 15px; }

.site-footer, [data-theme="dark"] .site-footer { background: transparent; color: var(--ice-foot); margin-top: 0; padding-top: 16px; }
.site-footer .wrap { width: var(--ice-frame-width); }

@media (min-width: 640px) {
  .site-header, [data-theme="dark"] .site-header { padding-top: 28px; }
  .glacier-home { padding: 0 clamp(22px, 3.4vw, 48px) 20px; }
  .glacier-feature { display: none; }
  .glacier-hero { display: grid; align-items: center; position: relative; isolation: isolate; min-height: clamp(320px, 26vw, 375px); }
  .glacier-hero-picture { position: absolute; inset: 0; pointer-events: none; }
  .glacier-hero-copy { position: relative; z-index: 1; padding: 22px 0 14px; }
  .glacier-hero h1 { margin: 0 0 8px; font-size: clamp(3rem, 5.35vw, 5.1rem); line-height: .89; letter-spacing: -.045em; }
  .glacier-hero p { max-width: 35ch; margin: 0; color: #eff8ff; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.26; }
  .glacier-hero-art { position: absolute; z-index: -1; display: block; right: -15px; top: 0; width: 63%; height: 112%; object-fit: cover; object-position: 52% top; mask-image: linear-gradient(to right, transparent, #000 21%, #000 92%, transparent), linear-gradient(to bottom, #000 76%, transparent); mask-composite: intersect; }
  .glacier-hero::after { content: ''; position: absolute; z-index: -1; inset: 0 -16px -39px 0; background: linear-gradient(to top, #245e9296, transparent 34%), linear-gradient(to right, #1b52878a 20%, transparent 68%); pointer-events: none; }
  [data-theme="dark"] .glacier-hero::after { background: linear-gradient(to top, #123858bc, transparent 34%), linear-gradient(to right, #0d2a498c 20%, transparent 68%); }
  .glacier-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
  .glacier-actions .btn { width: auto; padding: 0 17px; font-size: 1rem; min-height: 45px; gap: 8px; }
  .glacier-actions .btn.ghost { color: #fff; border: 1px solid #acd9f2b8; background: #144e7669; }
  .glacier-actions .btn.ghost:hover { background: #09345c; }
  .glacier-facts { display: flex; padding: 0; margin: 15px 0 0; list-style: none; color: #f4faff; font-size: .94rem; }
  .glacier-facts li { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-right: 1px solid #b9e2fb46; }
  .glacier-facts li:first-child { padding-left: 0; }
  .glacier-facts li:last-child { border: 0; }
  .glacier-facts svg { width: 18px; height: 18px; }
  .glacier-catalog { position: relative; margin-top: 0; padding-top: 10px !important; border-top: 1px solid #a8ddff47; }
  .glacier-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .glacier-type-picture { display: block; }
  .glacier-type-art { display: block; width: 100%; aspect-ratio: 1.82; object-fit: cover; border-bottom: 1px solid #e1f2ff9c; }
  .glacier-dial { display: grid; place-items: center; background: radial-gradient(ellipse at 35% 30%, #579acb, #235888 80%); }
  .glacier-dial i { position: relative; display: block; width: 72%; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #c7eeff 62%, #0d3e6a 62%); }
  .glacier-dial i::after { content: ''; width: 17px; height: 17px; position: absolute; left: 62%; top: 50%; transform: translate(-50%,-50%); background: #d5f3ff; border: 1px solid #80baf1; border-radius: 50%; box-shadow: 0 2px 7px #06284c91; }
  .glacier-type-meta { gap: 7px; padding: 8px 9px; }
  .glacier-type-meta b { font-size: .96rem; }
  .glacier-type-meta strong { font-size: 1.05rem; }
}
@media (min-width: 960px) {
  :root { --ice-frame-width: min(2160px, 100% - clamp(48px, 5vw, 144px)); }
  .site-header .wrap, [data-theme="dark"] .site-header .wrap { padding: 0 17px 0 27px; height: clamp(65px, 4.7vw, 92px); }
  .site-header .brand, [data-theme="dark"] .site-header .brand { border-right: 1px solid #c0e5ff60; padding: 0 24px 0 0; font-size: clamp(1.85rem, 2.05vw, 2.6rem); }
  .site-header .nav { background: none; border: 0; gap: clamp(5px, 1.15vw, 18px); }
  .site-header .nav a:not(.btn) { display: flex; align-items: center; padding: 0 9px; min-height: 38px; border-radius: 9px; }
  .site-header .nav a.btn { min-height: clamp(44px, 3.1vw, 55px); padding-inline: 15px; white-space: nowrap; }
  :root .site-header .nav a:not(.btn), :root .site-header .nav a[aria-current="page"]:not(.btn) { font-size: clamp(1rem, 1.25vw, 1.25rem); }
  .glacier-home { padding-inline: clamp(26px, 3vw, 66px); }
  .glacier-home h2 { font-size: clamp(2rem, 2.45vw, 3.15rem); }
  .glacier-hero { min-height: clamp(350px, 28vw, 580px); }
  .glacier-hero h1 { font-size: clamp(3.75rem, 5.75vw, 7rem); }
  .glacier-hero p { font-size: clamp(1.12rem, 1.55vw, 1.55rem); }
  .glacier-actions .btn { min-height: clamp(46px, 3.6vw, 62px); font-size: clamp(1rem, 1.32vw, 1.3rem); }
  .glacier-facts { font-size: clamp(1rem, 1.18vw, 1.25rem); }
  .glacier-types { grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(10px, 1vw, 22px); }
  .glacier-type-meta { min-height: clamp(72px, 5.5vw, 104px); padding: 9px clamp(8px, .75vw, 16px); }
  .glacier-type-meta b { font-size: clamp(1rem, 1.28vw, 1.3rem); }
  .glacier-type-meta strong { font-size: clamp(1.12rem, 1.5vw, 1.6rem); }
}

/* Interior pages: a compact blue masthead over a continuous frost sheet.
   Transaction and reading layouts keep their own measure inside the wide frame. */
.glacier-interior {
  color-scheme: light;
  --ice-content: 1360px;
  --ice-gutter: clamp(14px, 3.1vw, 65px);
  --ice-action-hover: #0d4f86;
  --ice-action-border: #286eaa;
  --ice-ghost: #226298;
  --ice-selection: #bde4ff;
  --ice-selected: #d9eeff;
  --bg: #eef7ff;
  --bg-2: #e5f1fb;
  --card: #f8fcff;
  --ink: var(--ice-ink);
  --ink-2: #294563;
  --mute: #49647e;
  --line: #c6d9ea;
  --line-2: #8daec8;
  --hi: #1b6eac;
  --accent-soft: #82c5f65c;
  --radius: 12px;
  color: var(--ink-2);
}
[data-theme="dark"] .glacier-interior {
  color-scheme: dark;
  --ice-action-border: #5498cb;
  --ice-ghost: #b6ddff;
  --ice-selection: #22517b;
  --ice-selected: #244b70;
  --bg: #102b47;
  --bg-2: #142f4d;
  --card: #193957;
  --ink-2: #d0e4f5;
  --mute: #adc5db;
  --line: #325471;
  --line-2: #577c9d;
  --hi: var(--ice-focus);
  --bad: #ff9b96;
}
.glacier-interior:has(> section > .narrow) { --ice-content: 780px; }
[data-page="packs"] .glacier-interior { --ice-content: 1600px; }
.glacier-interior .wrap, .glacier-interior .narrow { width: min(var(--ice-content), 100% - 2 * var(--ice-gutter)); }
.glacier-interior .page-head, [data-theme="dark"] .glacier-interior .page-head {
  padding: clamp(26px, 4.8vw, 76px) 0 clamp(24px, 3.6vw, 58px);
  background: transparent;
  margin: 0;
}
.glacier-interior .page-head h1 { font-size: clamp(2rem, 4.65vw, 5rem); line-height: 1.04; text-wrap: wrap; }
.glacier-interior .page-head .lede { color: var(--ice-foot); font-size: clamp(1.05rem, 1.35vw, 1.28rem); max-width: 60ch; }
.glacier-interior .page-head :focus-visible { outline-color: var(--ice-focus); }
.glacier-interior > section { background: var(--bg); padding: clamp(20px, 3vw, 48px) 0; }
.glacier-interior > section:first-of-type { border-top: 1px solid var(--ice-frame); }
.glacier-interior > section:last-child { border-radius: 0 0 16px 16px; }
.glacier-interior > .pricing-included { border-top: 1px solid var(--line); }
.pricing-included .split h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); }
.glacier-interior .prose > h2:first-child { margin-top: 0; }
.glacier-interior :is(.prose, .file-row, .kv, .pack-desc) { overflow-wrap: anywhere; }
.glacier-interior :is(.pack-price, .price, legend .n, .summary-card .total) { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.glacier-interior :is(.summary-card, .status-card, .pack-card, .pack-cover, .drop) { border-radius: var(--radius); }
.glacier-interior :is(.summary-card, .status-card, .pack-card) { background: var(--ice-card); }
.glacier-interior :is(legend, .summary-card .total, .type-opt label b) { color: var(--ink); }
.glacier-interior legend .n { background: var(--ice-selected); color: var(--ink); }
.glacier-interior .type-opt input:checked + label { background: var(--ice-selected); border-color: var(--hi); box-shadow: 0 0 0 1px var(--hi); }
.glacier-interior .type-opt .price-tag { font-variant-numeric: tabular-nums; white-space: nowrap; }
.glacier-interior .type-opt label { padding: 13px clamp(11px, 1.3vw, 20px); }
.glacier-interior .drop:is(:hover, .over) { background: var(--ice-selected); }
.glacier-interior :is(input[type=text], textarea, select) { color: var(--ink); background: var(--card); border-color: var(--line-2); caret-color: var(--hi); }
.glacier-interior :is(input, textarea)::placeholder { color: var(--mute); opacity: 1; }
.glacier-interior :is(input[type=text], textarea, select):focus-visible { border-color: var(--hi); outline: 2px solid var(--hi); outline-offset: 1px; }
.glacier-interior section ::selection { background: var(--ice-selection); color: var(--ink); }
.glacier-interior .copybox .btn { flex: none; }
.glacier-interior .btn { white-space: normal; text-align: center; line-height: 1.15; }
.glacier-interior .btn:not(.ghost, .danger) {
  color: var(--ice-white); background: var(--ice-action); border-color: var(--ice-action-border);
}
.glacier-interior .btn:not(.ghost, .danger):hover { background: var(--ice-action-hover); }
.glacier-interior .btn.ghost { color: var(--ice-ghost); border: 1px solid var(--line-2); background: var(--card); }
.glacier-interior .btn.ghost:hover { color: var(--ink); background: var(--ice-selected); }
.glacier-interior .price-table { margin: 0; }
.glacier-interior .price-table th { color: var(--ink); }
.glacier-interior .price-table td.price { color: var(--ink); }
.glacier-interior .price-table tr:last-child { margin-bottom: 0; }
.mobile-cta { background: var(--ice-shell); border-top: 1px solid var(--ice-frame); }
.mobile-cta span b { font-family: var(--sans); }

@media (max-width: 639px) {
  .glacier-interior .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glacier-interior .type-opt label b { align-items: baseline; gap: 6px; }
  .glacier-interior .type-opt label span { overflow-wrap: anywhere; }
}
@media (min-width: 960px) {
  .glacier-interior .form-grid { grid-template-columns: minmax(0, 1fr) clamp(312px, 28%, 390px); gap: clamp(24px, 4vw, 68px); }
  .glacier-interior .price-table th, .glacier-interior .price-table td { padding-block: 18px; }
}
