/* Hawaiki website. Colours and type follow the Hawaiki help books. */
:root {
  --bg: #ffffff; --bg-soft: #f6f7f5; --bg-card: #ffffff; --text: #1d1f1c; --text-2: #50554d; --text-3: #80867c;
  --line: #e2e5df; --accent: #4f9a17; --accent-ink: #3b7a0c; --accent-soft: #eaf5df; --on-accent: #ffffff;
  --bar: #1b1d1a; --bar-2: #2a2d28; --bar-text: #e9ebe6;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(0,0,0,.06);
  --radius: 14px; --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131512; --bg-soft: #1a1d19; --bg-card: #1c1f1b; --text: #e9ebe6; --text-2: #b6bbb1; --text-3: #868c82;
    --line: #2c302a; --accent: #6cb935; --accent-ink: #9ad86a; --accent-soft: #22301a; --on-accent: #0f1a08;
    --bar: #0d0f0c; --bar-2: #1c1f1b; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #131512; --bg-soft: #1a1d19; --bg-card: #1c1f1b; --text: #e9ebe6; --text-2: #b6bbb1; --text-3: #868c82;
  --line: #2c302a; --accent: #6cb935; --accent-ink: #9ad86a; --accent-soft: #22301a; --on-accent: #0f1a08;
  --bar: #0d0f0c; --bar-2: #1c1f1b; --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 19px; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: 12.5px; font-weight: 650; color: var(--accent-ink); margin: 0 0 10px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); line-height: 1.5; }
.muted { color: var(--text-3); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bar) 94%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); color: var(--bar-text); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 84px; }
.logo { display: block; flex: none; }
.logo img { height: 52px; width: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #ffffff33; color: var(--bar-text);
  font: 600 14px var(--font); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav summary { color: var(--bar-text); font-size: 15px; font-weight: 500; padding: 8px 12px;
  border-radius: 8px; display: block; cursor: pointer; }
.site-nav a:hover, .site-nav summary:hover { background: #ffffff14; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; background: #ffffff1c; }
.site-nav summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) translateY(-2px); opacity: .7; }
.site-nav details { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px; background: var(--bar-2); border: 1px solid #ffffff1a;
  border-radius: 12px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.menu img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.menu span { display: flex; flex-direction: column; line-height: 1.25; }
.menu small { color: #b6bbb1; font-size: 12.5px; font-weight: 400; }
.cta-nav { background: var(--accent) !important; color: var(--on-accent) !important; font-weight: 600 !important; margin-left: 6px; }
.cta-nav:hover { filter: brightness(1.08); }

/* Appearance switch in the header (styles of the switch itself are added by build/theme.py) */
.site-header .theme-switch { --ts-line: #ffffff26; --ts-text: #b6bbb1; --ts-hover: #fff; --ts-on-bg: #ffffff22; --ts-on: #fff; margin-left: 8px; }
.theme-item { display: flex; align-items: center; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font); padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.buy { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.buy:hover { opacity: .9; }
.btn .price { font-weight: 500; opacity: .8; }
.btn.play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent currentColor; }

/* Sections */
section.band { padding: clamp(48px, 8vw, 96px) 0; }
section.band.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.tight { padding: clamp(36px, 5vw, 56px) 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Home hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hosts { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.hosts li { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: var(--bg-soft); }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.pcard header { display: flex; align-items: center; gap: 14px; }
.pcard img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.pcard h3 { margin: 0; font-size: 18px; }
.pcard .price { font-size: 13.5px; color: var(--text-3); }
.pcard p { margin: 0; color: var(--text-2); font-size: 15px; flex: 1; }
.pcard .more { font-weight: 600; color: var(--accent-ink); font-size: 14.5px; }

/* Spotlights (home) */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.spot + .spot { margin-top: clamp(48px, 8vw, 88px); }
.spot:nth-child(even) .media { order: 2; }
.spot .icon-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.spot .icon-title img { width: 52px; height: 52px; border-radius: 12px; }
.spot .icon-title h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.spot ul { padding-left: 1.1em; color: var(--text-2); }
.spot li { margin: .3em 0; }

/* Media */
.media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.media img { width: 100%; }
.media.video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,.55) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 7l8 5-8 5z" fill="white"/></svg>') center/34px no-repeat;
  transition: transform .15s, background-color .15s; }
.media.video:hover::after { transform: scale(1.08); background-color: rgba(0,0,0,.75); }
.media iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.media.playing { aspect-ratio: 16 / 9; }
.media.playing::after { display: none; }

/* Product page */
.p-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.p-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.p-hero .app-icon { width: clamp(96px, 14vw, 156px); border-radius: 24%; box-shadow: var(--shadow); }
.p-hero h1 { margin-bottom: .15em; }
.p-hero .lede { margin: 0; }
.notice { display: block; margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.prose { max-width: 760px; }
.prose p { color: var(--text-2); font-size: 17px; }
.prose p b { color: var(--text); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
blockquote.quote { margin: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
blockquote.quote p { font-size: 18px; line-height: 1.5; color: var(--text); margin: 0 0 10px; }
blockquote.quote p::before { content: "“"; } blockquote.quote p::after { content: "”"; }
blockquote.quote cite { font-style: normal; color: var(--text-3); font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-card); }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.feature img { margin-top: 14px; border-radius: 8px; border: 1px solid var(--line); }
.features-more { margin-top: 22px; color: var(--text-2); }
figure { margin: 0; }
figure.wide { margin: 24px 0; }
figure.wide img, .split figure img, .gallery-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-img { margin-top: 36px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; max-width: 820px; }
.checklist li { position: relative; padding-left: 30px; margin: .7em 0; color: var(--text-2); }
.checklist li b { color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
table.facts { border-collapse: collapse; width: 100%; max-width: 860px; font-size: 15.5px; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
table.facts th { width: 26%; font-weight: 600; }
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: 1px solid var(--line); }
.subnav { position: sticky; top: 84px; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 6px; height: 52px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav b { margin-right: 10px; white-space: nowrap; font-size: 15px; }
.subnav a { color: var(--text-2); font-size: 14px; padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
.subnav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--text); }
.subnav .btn { margin-left: auto; padding: 6px 14px; font-size: 14px; white-space: nowrap; }

/* Install / FxFactory panel */
.panel { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line); }
.panel img { width: 64px; height: 64px; }
.panel p { margin: 0; color: var(--text-2); }
.panel h3 { margin-bottom: 4px; }
.panel .btns { margin: 0; justify-content: flex-end; }

/* Support / about */
.page-head { padding: clamp(40px, 7vw, 80px) 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.signoff { font-weight: 600; color: var(--text); }

/* Footer */
.site-footer { background: var(--bar); color: #b6bbb1; padding: 48px 0 32px; margin-top: 0; font-size: 14.5px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #d6d9d2; }
.site-footer .logo img { height: 22px; margin-bottom: 14px; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #ffffff1a; font-size: 13px; color: #868c82; }

/* Responsive */
@media (max-width: 960px) {
  .products, .features { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 84px; background: var(--bar); padding: 8px 16px 20px;
    border-top: 1px solid #ffffff14; max-height: calc(100vh - 84px); overflow-y: auto; }
  body.nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
  .menu { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 8px; }
  .cta-nav { margin: 8px 0 0; text-align: center; }
  .theme-item { padding: 10px 12px 0; }
  .site-header .theme-switch { margin-left: 0; }
  .hero-grid, .spot, .two-col, .split { grid-template-columns: 1fr; }
  .spot:nth-child(even) .media { order: 0; }
  .panel { grid-template-columns: auto 1fr; }
  .panel .btns { grid-column: 1 / -1; justify-content: flex-start; }
  .subnav { top: 84px; }
}
@media (max-width: 600px) {
  .products, .features { grid-template-columns: 1fr; }
  .p-hero .wrap { grid-template-columns: 1fr; }
  .p-hero .app-icon { width: 88px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  table.facts th, table.facts td { display: block; width: auto; padding: 4px 0; border: 0; }
  table.facts tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  table.facts tr:last-child { border-bottom: 1px solid var(--line); }
  .btn { padding: 10px 14px; }
  .subnav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; border: 1px solid var(--ts-line, var(--line));
  background: var(--ts-bg, transparent); vertical-align: middle; }
.theme-switch button { display: grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 0; border-radius: 7px;
  background: none; color: var(--ts-text, var(--text-2)); cursor: pointer; }
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button:hover { color: var(--ts-hover, var(--text)); }
.theme-switch button[aria-checked="true"] { background: var(--ts-on-bg, var(--accent-soft)); color: var(--ts-on, var(--accent-ink)); }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
