/* Hopper Static Edge Editorial Base CSS — parameterized Mind Map editorial playbook.
 * Products override --accent, --accent-dark, --accent-soft, --accent-line, --hero-bg, --section-tint. */
:root {
  color-scheme: light;
  --paper: #fffbf6;
  --ink: #242130;
  --accent: #2c4c7c;
  --accent-dark: #1d355a;
  --accent-soft: #e6eef8;
  --accent-line: #b9cbe3;
  --warm: #b5542d;
  --muted: #5a5b69;
  --line: #e4ddd5;
  --hero-bg: #f6dbc0;
  --section-tint: #f2f5f9;
  --card-surface: #ffffff;
  --serif: Instrument, "Iowan Old Style", Georgia, serif;
  --display: Bricolage, system-ui, sans-serif;
}
* { box-sizing: border-box; }
picture { display: contents; }
body.product-page { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.product-page a { color: inherit; }
.product-page :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.product-page h1, .product-page h2, .product-page h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
.product-page h1, .product-page h2, .product-page h3, .product-page p, .product-page figure { margin: 0; }
.product-page h2 { font-size: clamp(34px, 4.3vw, 62px); line-height: 1.03; letter-spacing: -.05em; }
.product-page h1 em, .product-page h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent); }
.wrap, .head-inner { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; padding: 12px 16px; background: #fff; z-index: 100; border: 1px solid var(--line); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, #fffaf2 92%, transparent); backdrop-filter: blur(10px); }
.head-inner, .brand-pair, .brand-home, .site-links, .foot-brand, .site-foot nav { display: flex; align-items: center; }
.head-inner { min-height: 66px; gap: 24px; }
.brand-pair { gap: 11px; margin-right: auto; }
.brand-home, .product-name, .foot-brand a, .nav-open, .site-links a, .mobile-menu a { text-decoration: none; }
.brand-home { gap: 8px; font: 650 15px var(--display); letter-spacing: -.035em; white-space: nowrap; }
.brand-pair > span { color: #b5aba2; }
.product-name { font: 600 14px var(--display); white-space: nowrap; }
.site-links { gap: clamp(14px, 1.9vw, 26px); }
.site-links a, .site-foot nav a, .mobile-menu a { font-size: 13px; font-weight: 550; }
.site-links a[aria-current], .mobile-menu a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.brand-home:hover, .site-links a:hover, .foot-brand a:hover, .site-foot nav a:hover, .product-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nav-open { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--accent-line); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #fff; color: var(--accent-dark); }
.nav-open:hover { background: var(--accent-soft); border-color: var(--accent); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { width: 38px; height: 42px; list-style: none; display: grid; align-content: center; justify-content: center; gap: 5px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 17px; height: 2px; border-radius: 2px; background: var(--ink); }
.mobile-menu nav { position: absolute; right: 0; top: 100%; display: grid; min-width: 11.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 8px; box-shadow: 0 12px 36px rgb(24 20 38 / 16%); }
.mobile-menu a { padding: 10px; }

/* Hero */
.hero { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: start; overflow: hidden; min-height: clamp(590px, 47vw, 800px); padding: clamp(42px, 4.5vw, 82px) 16px 36px; background: var(--hero-bg); text-align: center; }
.hero-landscape { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-copy { width: min(740px, 100%); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(54px, 6.2vw, 96px); letter-spacing: -.062em; line-height: .95; }
.hero h1 em { font-size: 1.07em; }
.hero-copy > p { margin: clamp(16px, 1.6vw, 24px) auto 0; max-width: 34rem; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.46; color: #36303b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin: 22px 0 10px; }
.btn, .text-link, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 650; text-decoration: none; }
.btn { padding: 13px 24px; border-radius: 999px; }
.product-page .btn.primary { color: #fffbf6; background: var(--accent-dark); box-shadow: 0 6px 20px rgb(24 34 58 / 18%); }
.product-page .btn.primary:hover { background: var(--accent); }
.secondary-action, .text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--accent-dark); }
.hero small { display: block; font-size: 12px; color: #4b3f44; }

/* Sections */
.section-intro { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-bottom: 30px; }
.section-intro p { margin-top: 12px; color: var(--muted); max-width: 34rem; }
.view-section, .examples-section, .connections-section, .guide-section, .detail-section { padding-block: clamp(54px, 6vw, 92px); }
.examples-section { background: var(--section-tint); border-block: 1px solid var(--line); }

/* Interactive CSS-Only View Explorer */
.view-explorer { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--accent-line); border-radius: 24px; background: var(--section-tint); }
.view-label { display: inline-flex; align-items: center; padding: 8px 16px; cursor: pointer; border-radius: 999px; font-size: 13px; font-weight: 600; margin: 0 6px 8px 0; border: 1px solid transparent; }
.view-radio:checked + label { background: var(--accent-dark); color: #fff; }
.view-radio:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.view-panel { display: none; margin-top: 20px; grid-template-columns: minmax(210px, .68fr) minmax(0, 1.75fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
#view-0:checked ~ .panel-0, #view-1:checked ~ .panel-1, #view-2:checked ~ .panel-2, #view-3:checked ~ .panel-3 { display: grid; }
.view-description { padding: 8px 0; }
.view-description h3, .example-caption h3, .feature-group h3, .offer h3 { font-size: clamp(23px, 2.2vw, 34px); letter-spacing: -.038em; line-height: 1.12; }
.view-description p, .connections-section p, .feature-group p, .offer p { margin: 12px 0 18px; color: var(--muted); }
.view-stage { display: block; overflow: hidden; background: var(--card-surface); border: 1px solid var(--accent-line); border-radius: 16px; padding: 18px; box-shadow: 0 10px 28px rgb(24 34 58 / 7%); text-decoration: none; }

/* Starter Examples Grid */
.example-library { border: 0; margin: 0; padding: 0; min-width: 0; }
.example-library > label { display: inline-flex; cursor: pointer; gap: 6px; align-items: center; border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 14px; margin: 0 6px 10px 0; font-size: 13px; font-weight: 600; background: #fff; }
.example-library > input:checked + label { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); margin-top: 18px; }
.example { display: grid; align-content: space-between; gap: 14px; background: var(--card-surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 4px 16px rgb(24 24 38 / 5%); transition: transform 150ms ease, border-color 150ms ease; }
.example:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.example-preview { border-radius: 12px; background: var(--paper); border: 1px solid var(--line); padding: 14px; min-height: 138px; display: grid; gap: 8px; align-content: start; }
.example-caption small { display: block; margin-bottom: 6px; color: var(--accent); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.example-caption h3 { font-size: clamp(20px, 1.8vw, 24px); }
.example-caption h3 a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.example-caption h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.example-caption p { margin-top: 8px; font-size: 14px; color: var(--muted); }
#filter-cat1:checked ~ .examples-grid .example:not([data-collection="cat1"]),
#filter-cat2:checked ~ .examples-grid .example:not([data-collection="cat2"]),
#filter-cat3:checked ~ .examples-grid .example:not([data-collection="cat3"]) { display: none; }

/* Connected Suite */
.connections-section { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.connections-art { width: 100%; height: auto; display: block; border-radius: 20px; border: 1px solid var(--line); }

/* Guide / FAQ */
.guide-section { border-top: 1px solid var(--line); }
.guide-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.questions details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { cursor: pointer; font-weight: 600; font-family: var(--display); font-size: 18px; }
.questions p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Subpages (Features, Integrations, Compare, Pricing) */
.subhero { background: linear-gradient(112deg, var(--hero-bg), var(--section-tint)); border-bottom: 1px solid var(--line); }
.subhero > .wrap { min-height: 310px; padding-block: 44px; display: flex; align-items: center; justify-content: space-between; gap: clamp(28px, 6vw, 84px); }
.subhero-copy { max-width: 39rem; }
.subhero h1 { font-size: clamp(44px, 5.2vw, 76px); line-height: .98; letter-spacing: -.055em; margin: 10px 0 16px; }
.subhero p { font-size: 17px; color: var(--muted); }
.subhero-art { display: block; width: 38%; max-width: 420px; aspect-ratio: 1.45; height: auto; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.kicker { display: block; color: var(--accent); font: 650 12px/1.4 var(--display); text-transform: uppercase; letter-spacing: .12em; }
.feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
.feature-group { border-top: 1px solid var(--line); padding-top: 20px; }
.offer-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.offer { background: var(--card-surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; align-content: start; gap: 10px; }
.offer.featured { border-color: var(--accent-line); background: var(--section-tint); }
.offer-price { font: 600 38px/1.05 var(--display); color: var(--ink); margin: 4px 0 6px; }
.offer ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 14px; }

/* Compare table */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--section-tint); font-family: var(--display); font-size: 15px; }
.compare-table tbody th { font-weight: 600; width: 24%; }
.compare-table tbody td:nth-child(2) { background: color-mix(in srgb, var(--accent-soft) 38%, transparent); font-weight: 500; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: #fffaf2; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 26px; }
.foot-brand { gap: 12px; }
.foot-brand > a:last-child { font-size: 13px; font-weight: 600; }
.site-foot nav { flex-wrap: wrap; gap: 18px; }

/* Responsive */
@media (max-width: 960px) {
  .wrap, .head-inner { width: calc(100% - 48px); }
  .site-links { display: none; }
  .mobile-menu { display: block; }
  .view-panel, .connections-section, .guide-inner, .feature-groups, .offer-pair { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subhero > .wrap { flex-direction: column; align-items: flex-start; }
  .subhero-art { width: 100%; max-width: none; aspect-ratio: 2.1; }
}
@media (max-width: 640px) {
  .wrap, .head-inner { width: calc(100% - 32px); }
  .head-inner { gap: 8px; }
  .brand-pair { gap: 6px; min-width: 0; overflow: hidden; }
  .brand-home, .product-name { font-size: 13px; }
  .product-name { overflow: hidden; text-overflow: ellipsis; }
  .nav-open { display: none; }
  .hero { min-height: 540px; padding-top: 34px; }
  .hero-landscape { height: 76%; top: auto; object-position: center bottom; mask-image: linear-gradient(to bottom, transparent, #000 22%); }
  .examples-grid { grid-template-columns: 1fr; }
}
