/* HermeticMind.com — styles. Colours, type and rules: HermeticMind Brand Guidelines (vault). */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours, proposed 8 Oct 2026: the book's blue and gold on white. No dark blue. */
  --blue: #1657A4;   /* the cover's main bright blue */
  --sky: #4C8FDD;
  --gold: #ECBD40;
  --white: #FFFFFF;
  --cloud: #F1F6FC;
  --ink: #1F2329;
  --slate: #525C6B;
  --rule: #E2E7EF;

  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-small: 6px;
  --r-panel: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 10; }

h1, h2, h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
.small { font-size: 15px; line-height: 1.5; color: var(--slate); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo .lm { width: 36px; height: 36px; color: var(--blue); flex: none; }
.logo .lw { font: 600 23px/1 var(--font); letter-spacing: -0.02em; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1 var(--font); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-soon-light { border-color: var(--blue); color: var(--blue); background: transparent; cursor: default; }
.btn-soon-dark { border-color: var(--gold); color: var(--gold); background: transparent; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero: the two apps, on their devices */
.hero { padding: clamp(36px, 4.5vw, 64px) 0 clamp(64px, 8vw, 112px); text-align: center; }
/* The tagline is the one line set in capitals, as on the book cover. The text itself stays in sentence case. */
.hero h1 { font-size: clamp(34px, 3.9vw, 56px); font-weight: 700; line-height: 1.06; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; margin: 0 auto; }
.hero-sub { font-size: clamp(19px, 1.7vw, 22px); color: var(--slate); margin: 18px auto 0; max-width: 62ch; text-wrap: balance; }
.stage { position: relative; width: min(100%, 1040px, max(560px, calc((100svh - 340px) * 1.739))); margin: clamp(32px, 4vw, 56px) auto 0; aspect-ratio: 100 / 57.5; container-type: inline-size; text-align: left; }

.monitor { position: absolute; left: 0; top: 0; width: 80%; filter: drop-shadow(0 1.6cqw 2.4cqw rgba(31, 35, 41, .16)); }
.bezel { background: var(--ink); border: .3cqw solid #3A404A; border-radius: 1.4cqw; padding: 1.1cqw; }
.display { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #DCE9F9 0%, #AFCDF1 100%); border-radius: .5cqw; overflow: hidden; container-type: inline-size; }
.neck { width: 11%; height: 4.5cqw; margin: 0 auto; background: #C9D1DC; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.foot { width: 30%; height: .9cqw; margin: 0 auto; background: #C9D1DC; border-radius: .5cqw .5cqw .2cqw .2cqw; }
.desk { position: absolute; left: 0; right: 0; top: 0; bottom: 6.5%; }
.window { position: absolute; left: 31%; top: 25%; width: 38%; height: 50%; background: #fff; border-radius: .7cqw; padding: 2cqw 2.4cqw; box-shadow: 0 .4cqw 1.2cqw rgba(31, 35, 41, .14); }
.window b { display: block; font: 600 max(6px, 1.4cqw)/1.2 var(--font); color: var(--slate); margin-bottom: 1.8cqw; }
.window i { display: block; height: 1cqw; border-radius: .5cqw; background: color-mix(in srgb, var(--ink) 9%, white); margin: 0 0 1.4cqw; }
.window i:nth-of-type(2) { width: 84%; } .window i:nth-of-type(3) { width: 66%; } .window i:nth-of-type(5) { width: 78%; } .window i:nth-of-type(6) { width: 52%; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6.5%; background: rgba(255, 255, 255, .72); display: flex; align-items: center; justify-content: center; gap: 1.4cqw; }
.taskbar i, .taskbar .tray { display: block; width: 2.4cqw; aspect-ratio: 1; border-radius: .5cqw; background: #B9C3D0; }
.taskbar .tray { background: none; }
.taskbar .tray svg { display: block; width: 100%; height: 100%; }
.aff { position: absolute; padding: .55em 1em; font-size: max(8px, 1.6cqw); line-height: 1.3; opacity: 0; transition: opacity 900ms ease; white-space: nowrap; }

.phone { position: absolute; right: 2%; bottom: 0; width: 21%; aspect-ratio: 9 / 19.5; background: var(--ink); border: .3cqw solid #3A404A; border-radius: 16% / 7.4%; container-type: inline-size; filter: drop-shadow(0 1.6cqw 2.4cqw rgba(31, 35, 41, .22)); }
.pscreen { position: absolute; inset: 2.6cqw; border-radius: 13cqw; background: linear-gradient(180deg, #1657A4 0%, #2868B8 100%); color: var(--white); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.island { position: absolute; top: 3.6cqw; left: 35%; width: 30%; height: 8cqw; border-radius: 4cqw; background: #000; }
.pstatus { align-self: stretch; display: flex; justify-content: space-between; align-items: center; padding: 4.4cqw 9cqw 0; font: 600 4.6cqw/1 var(--font); }
.batt { width: 8cqw; height: 4cqw; border: .7cqw solid var(--white); border-radius: 1.2cqw; }
.ptop { margin-top: 14cqw; display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.pfocus { font: 600 10cqw/1.1 var(--font); letter-spacing: -0.01em; }
.plen { font-size: 5cqw; color: rgba(255, 255, 255, .8); }
.prings { width: 62cqw; margin: 10cqw 0; overflow: visible; }
.prings .ring { transform-origin: 50% 50%; transform-box: fill-box; }
.pbar { width: 72cqw; height: 1.6cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .28); }
.pbar span { display: block; width: 38%; height: 100%; border-radius: 1cqw; background: var(--gold); }
.ptimes { width: 72cqw; display: flex; justify-content: space-between; font-size: 4.4cqw; color: rgba(255, 255, 255, .8); margin-top: 2.6cqw; }
.pplay { width: 22cqw; height: 22cqw; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-top: 8cqw; }
.pplay svg { width: 11cqw; height: 11cqw; }
.pnote { margin-top: auto; margin-bottom: 9cqw; font-size: 4.6cqw; color: rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: no-preference) {
  .prings .ring { animation: breathe 5.5s ease-in-out infinite; }
  .prings .ring.r2 { animation-delay: .5s; } .prings .ring.r3 { animation-delay: 1s; }
}
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.02); } }

.stage-captions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; max-width: 1040px; margin: clamp(36px, 4vw, 56px) auto 0; }
.stage-captions h2 { font-size: clamp(26px, 2.6vw, 34px); }
.stage-captions p { color: var(--slate); margin: 12px auto 22px; max-width: 36ch; }
.which { font-size: 16px; font-weight: 500; margin: 0; }
.stage-captions > div { display: flex; flex-direction: column; align-items: center; }
.stage-captions .btn { margin-top: auto; }
.stage-captions .more { margin: 16px auto 0; font-size: 16px; }

/* App pages: the same hero, with the app's own headline in sentence case and one device */
.hero.product .which { color: var(--blue); margin: 0 auto 14px; }
.hero.product h1 { font-size: clamp(36px, 4.8vw, 62px); font-weight: 600; letter-spacing: -0.02em; text-transform: none; line-height: 1.06; max-width: 15em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin-top: 28px; }
.hero .actions .small { margin: 0; }
.stage.solo-monitor { aspect-ratio: 100 / 69.5; width: min(100%, 900px, max(520px, calc((100svh - 330px) * 1.44))); }
.stage.solo-monitor .monitor { width: 100%; }
.stage.solo-phone { aspect-ratio: 9 / 19.5; width: min(290px, 68vw); }
.stage.solo-phone .phone { width: 100%; right: 0; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.band { background: var(--blue); color: var(--white); }
.band h2, .band h3, .band p, .band .which { color: var(--white); }
.band .small { color: rgba(255, 255, 255, .82); }
.band a { color: var(--white); }
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; align-items: start; }
.pair-rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.stack > * + * { margin-top: 22px; }
.strap h2 { font-size: clamp(38px, 5.4vw, 68px); }
.strap .sources { margin-top: 28px; }

.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.points li { padding-left: 26px; position: relative; max-width: 58ch; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); }
.band .points li::before { border-color: var(--gold); }
.points strong { font-weight: 600; }

.shot { margin: 0; }
.shot img { border-radius: var(--r-panel); border: 1px solid var(--rule); background: #fff; }
.shot figcaption { font-size: 14px; color: var(--slate); margin-top: 12px; max-width: 60ch; }

.looks { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.looks span { padding: 9px 16px; font-size: 15px; }

.manifesto { list-style: none; margin: 32px 0 0; padding: 0; }
.manifesto li { font-family: var(--font); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; padding: 14px 0; border-top: 1px solid var(--rule); }
.manifesto li:last-child { border-bottom: 1px solid var(--rule); }
.facts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--slate); font-size: 16px; }

.themes { background: var(--blue); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.themes h2 { color: var(--white); }
.themes p { color: var(--white); }
.theme-list { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.theme-list li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: clamp(20px, 2vw, 26px); padding: 8px 18px 8px 12px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 999px; }
.theme-list svg { width: 22px; height: 22px; }

.magic { margin-top: clamp(56px, 8vw, 96px); background: var(--white); color: var(--ink); border-radius: 18px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px 56px; }
.magic h2 { color: var(--blue); }
.magic .soon { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 500; font-size: 15px; padding: 5px 12px; border-radius: 999px; margin: 0 0 16px; }
.band .magic p { color: var(--ink); }
.band .magic .small { color: var(--slate); }
.band .wrap > .magic:first-child { margin-top: 0; }
.band .theme-list { margin-top: 18px; }
.cloud-band { background: var(--cloud); }
.cloud-band .magic { border: 1px solid var(--rule); }

/* Home page app bands: a picture of the device beside a short summary */
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: center; }
.app-grid-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.app-text .which { margin-bottom: 14px; }
.app-text h2 { margin-bottom: 18px; }
.app-text .points { margin-top: 22px; gap: 14px; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.stage.band-phone { aspect-ratio: 9 / 19.5; width: min(270px, 72%); margin: 0 auto; }
.stage.band-phone .phone { width: 100%; right: 0; }
.stage.band-monitor { aspect-ratio: 100 / 69.5; width: 100%; margin: 0; }
.stage.band-monitor .monitor { width: 100%; }
.band .btn-soon-light { border-color: var(--white); color: var(--white); }
.band .points strong, .band .points li { color: var(--white); }

/* The Nightly Protocol: a real sequence, so each step carries its time */
.protocol { list-style: none; margin: 0; padding: 0; }
.protocol li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.protocol li:last-child { border-bottom: 1px solid var(--rule); }
.protocol .when { font-weight: 600; color: var(--blue); }
.pointer { border: 1px solid var(--rule); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); max-width: 760px; }
.pointer h3 { margin-bottom: 10px; }
.pointer p { margin: 0; }

.book { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.book img { border-radius: 4px; box-shadow: 0 1px 0 var(--rule); }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 72px; }
.faq dl { margin: 0; }
.faq dt { font-family: var(--font); font-weight: 600; font-size: 22px; line-height: 1.25; margin-top: 30px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 8px 0 0; max-width: 60ch; }

/* Inner pages */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-head p { font-size: 20px; color: var(--slate); max-width: 58ch; margin-top: 20px; }
.prose { padding: clamp(40px, 6vw, 72px) 0; }
.prose .wrap > * { max-width: 70ch; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0 8px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; }
.quote { font-family: var(--font); font-weight: 500; font-size: 25px; line-height: 1.3; border-left: 3px solid var(--blue); padding-left: 20px; margin: 20px 0; max-width: 40ch; }

.deck-list { list-style: none; margin: 0; padding: 0; }
.deck-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 12px 36px; align-items: center; padding: 26px 0; border-top: 1px solid var(--rule); }
.deck-list li:last-child { border-bottom: 1px solid var(--rule); }
.deck-list h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 0; }
.deck-list h2 a { color: var(--ink); text-decoration: none; }
.deck-list h2 a:hover { text-decoration: underline; }
.deck-list p { margin: 0; color: var(--slate); }
.status { font-size: 15px; color: var(--blue); white-space: nowrap; }

/* Contact form */
.contact-form { display: grid; gap: 20px; max-width: 620px; margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 17px/1.45 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid #C9D1DC; border-radius: 10px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 1px; }
.contact-form .hp { display: none; }
.contact-form[hidden] { display: none; }
button.btn { cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: default; }
.form-status { max-width: 620px; font-weight: 500; margin: 0 0 18px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--blue); font-size: 20px; }
.form-status.err { color: #A12A1E; }

/* Footer */
.site-foot { background: var(--cloud); color: var(--ink); padding: 56px 0 40px; border-top: 1px solid var(--rule); }
.site-foot .top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.site-foot p { color: var(--slate); font-size: 15px; margin: 14px 0 0; }
.site-foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font-size: 16px; }
.site-foot nav a { color: var(--ink); text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--slate); }

/* Responsive */
@media (max-width: 900px) {
  .pair, .pair-rev, .magic, .book, .faq, .app-grid { grid-template-columns: 1fr; }
  .app-grid-rev .app-media { order: -1; }
  .book { justify-items: start; }
  .book img { max-width: 240px; }
  .deck-list li { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stage { aspect-ratio: 100 / 74; width: 100%; }
  .monitor { width: 84%; }
  .phone { width: 29%; right: 0; }
  .stage-captions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .protocol li { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .logo svg { width: 178px; }
  .nav { font-size: 15px; gap: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .aff { transition: none; }
}
