/* AppwareStudio.com — styles. The company's own look, kept apart from HermeticMind's blue and gold
   (those appear only on the HermeticMind tiles and the phone). Font: Geist (SIL Open Font License,
   fonts/OFL-Geist.txt), served from this site. Ken chose it on 29 Oct 2026, replacing Bricolage Grotesque. */

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

:root {
  --ink: #17202E;     /* text, buttons, the logo tile */
  --paper: #FFFFFF;
  --fog: #EEF2F6;     /* panels */
  --slate: #566173;   /* secondary text */
  --rule: #D8DEE6;
  --teal: #0A6E5E;    /* links and focus */
  --mint: #34D1A9;    /* the phone in the logo only */

  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }

h1, h2, h3 { font-weight: 650; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 3.7vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(25px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--slate); max-width: 46ch; margin-top: 24px; }
.small { font-size: 15px; line-height: 1.5; color: var(--slate); }

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

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo .mark { width: 38px; height: 38px; flex: none; }
.logo .lw { font-size: 23px; line-height: 1; font-weight: 400; letter-spacing: -0.025em; white-space: nowrap; }
.logo .lw b { font-weight: 700; }
.mk-tile { fill: var(--ink); }
.mk-line { stroke: var(--paper); }
.mk-phone { fill: var(--mint); stroke: var(--ink); }
.logo-light { color: var(--paper); }
.logo-light .mk-tile { fill: var(--paper); }
.logo-light .mk-line { stroke: var(--ink); }
.logo-light .mk-phone { stroke: var(--paper); fill: #12A383; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 17px; font-weight: 500; }
.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(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 17px/1 var(--font); padding: 16px 22px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; transition: background-color .2s ease, color .2s ease; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2B3648; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-teal { background: var(--teal); color: var(--paper); }
.btn-teal:hover { background: #08584B; }
button.btn { cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: default; }

/* Hero: the headline, and the company's apps on a shelf like a home screen */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12em; }
.shelf { list-style: none; margin: 0; padding: clamp(28px, 3.4vw, 44px); background: var(--fog); border-radius: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.shelf a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--ink); text-decoration: none; border-radius: 20px; padding: 6px 4px 10px; }
.shelf .tile { width: clamp(88px, 9.4vw, 136px); aspect-ratio: 1; margin-bottom: 10px; filter: drop-shadow(0 12px 16px rgba(23, 32, 46, .16)); transition: transform .25s ease; }
.shelf .tile svg { display: block; width: 100%; height: 100%; }
.shelf a:hover .tile { transform: translateY(-3px); }
.tile-name { font-weight: 650; font-size: 18px; line-height: 1.2; text-wrap: balance; }
.tile-plat { display: block; font-size: 15px; line-height: 1.4; color: var(--slate); text-wrap: balance; }
.tile-plat svg { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }

/* Our apps */
.apps { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(40px, 6vw, 88px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { color: var(--slate); font-size: 19px; margin: 6px 0 0; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 72px); align-items: center; scroll-margin-top: 24px; }
.product + .product { margin-top: clamp(64px, 8vw, 112px); }
.product-rev .media-panel { order: 2; }
.media-panel { background: var(--fog); border-radius: 28px; padding: clamp(20px, 3.6vw, 48px); }
.media-shots { display: grid; gap: 22px; padding: clamp(16px, 2.6vw, 32px); }
.shot { margin: 0; }
.shot img { border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 18px 40px -26px rgba(23, 32, 46, .45); }
.shot figcaption { font-size: 15px; color: var(--slate); margin-top: 10px; }
.product-text h3 { margin-bottom: 16px; }
.facts { margin: 22px 0 22px; padding: 0; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 650; font-size: 16px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--slate); }
.soon { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--slate); margin: 0 0 18px; }
.soon svg { width: 18px; height: 18px; flex: none; }

/* The mobile app's player (as drawn on HermeticMind.com) */
.media-phone { display: grid; place-items: center; padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(28px, 4vw, 52px); }
.phone { position: relative; width: min(250px, 66%); aspect-ratio: 9 / 19.5; background: #1F2329; border: 2px solid #3A404A; border-radius: 16% / 7.4%; container-type: inline-size; box-shadow: 0 24px 40px -22px rgba(23, 32, 46, .55); }
.pscreen { position: absolute; inset: 2.6cqw; border-radius: 13cqw; background: linear-gradient(180deg, #1657A4 0%, #2868B8 100%); color: #FFFFFF; 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 #FFFFFF; border-radius: 1.2cqw; }
.ptop { margin-top: 14cqw; display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.pfocus { font: 650 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: #ECBD40; }
.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: #ECBD40; 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); } }

/* How our apps work */
.ways { background: var(--fog); padding: clamp(56px, 7vw, 96px) 0; }
.ways-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(28px, 4vw, 56px); margin: clamp(28px, 3.5vw, 44px) 0 0; }
.ways-list div { border-top: 3px solid var(--ink); padding-top: 18px; }
.ways-list dt { font-size: clamp(22px, 2vw, 26px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.ways-list dd { margin: 0; color: var(--slate); }

/* The company */
.company { padding: clamp(64px, 8vw, 112px) 0; scroll-margin-top: 0; }
.company-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.company-grid > div > p { margin-top: 18px; color: var(--slate); }
.register { margin: 28px 0 0; padding: 0; }
.register div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule); }
.register div:last-child { border-bottom: 1px solid var(--rule); }
.register dt { font-weight: 650; }
.register dd { margin: 0; overflow-wrap: break-word; }
.help-card { background: var(--fog); border-radius: 24px; padding: clamp(26px, 3vw, 38px); margin-top: 8px; }
.help-card h3 { margin-bottom: 14px; }
.help-card p { color: var(--slate); }
.help-card .btn { margin-top: 6px; }

/* Support and privacy pages */
.page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 3vw, 40px); }
.page-head h1 { font-size: clamp(44px, 5.6vw, 72px); }
.support { padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.support h2 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 22px; }
.support-side { background: var(--fog); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.support-side .register { margin-top: 0; }
.support-side .register div { grid-template-columns: 5.5em 1fr; font-size: 17px; }
.support-side .register div:last-child { border-bottom: 0; }
.support-side .register div:first-child { border-top: 0; padding-top: 0; }
.side-gap { margin-top: 36px; }
.help-links { list-style: none; margin: 0; padding: 0; }
.help-links li { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid var(--rule); }
.help-links li:first-child { border-top: 0; padding-top: 0; }
.help-links a { font-weight: 600; }
.help-links span { font-size: 15px; color: var(--slate); }

.contact-form { display: grid; gap: 20px; max-width: 620px; margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 17px/1.45 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid #B9C3D0; 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(--teal); outline: 2px solid color-mix(in srgb, var(--teal) 25%, transparent); outline-offset: 1px; }
.contact-form .hp { display: none; }
.contact-form[hidden] { display: none; }
.form-status { max-width: 620px; font-weight: 600; margin: 0 0 18px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--teal); font-size: 20px; }
.form-status.err { color: #A12A1E; }

.prose { padding: 0 0 clamp(72px, 9vw, 120px); }
.prose .wrap > * { max-width: 68ch; }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 8px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }

/* Footer */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 48px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-links a { color: var(--paper); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--mint); }
.legal { font-size: 15px; margin: 24px 0 0; max-width: none; }

/* Narrower screens */
@media (max-width: 920px) {
  .hero-grid, .section-head, .product, .company-grid, .support-grid { grid-template-columns: 1fr; }
  .product-rev .media-panel { order: 0; }
  .hero h1 { max-width: 13em; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .logo .lw { font-size: 21px; }
  .logo .mark { width: 34px; height: 34px; }
  .shelf { gap: 20px 12px; border-radius: 24px; padding: 24px 14px; }
  .tile-name { font-size: 16px; }
  .tile-plat { font-size: 14px; }
  .facts div, .register div, .support-side .register div { grid-template-columns: 1fr; gap: 2px; }
  .ways-list { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
}
@media (min-width: 521px) and (max-width: 920px) {
  .ways-list { grid-template-columns: 1fr; }
}
