/* Dvalin LLC — site styles. Copyright (c) 2026 Dvalin LLC. */

@font-face { font-family: "Saira"; font-weight: 500; font-display: swap; src: url("../fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-weight: 600; font-display: swap; src: url("../fonts/saira-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #1d2127;
  --bg-deep: #171a1f;
  --surface: #242931;
  --surface-2: #2a3039;
  --line: #343b45;
  --gold: #c9a764;
  --gold-hi: #e2c389;
  --gold-lo: #a9874e;
  --gold-grad: linear-gradient(180deg, #e2c389 0%, #a9874e 100%);
  --text: #e6e2da;
  --muted: #a4abb4;
  --dim: #7d8590;
  --head: "Saira", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -200px, #2b313a 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--body);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 3px; }
main { flex: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--bg-deep); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(23, 26, 31, .6); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--gold); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 600 1.35rem/1 var(--head); letter-spacing: .32em; color: #ae9263; padding-left: .05em; } /* flat wordmark color from branding sheet */
.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font: 500 .9rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold-hi); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* Search */
.site-header { position: relative; }
.nav { align-items: center; }
.search-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; }
.search-btn[hidden] { display: none; }
.search-btn:hover, .search-btn[aria-expanded="true"] { color: var(--gold-hi); border-color: var(--line); }
.search-panel { position: absolute; z-index: 20; top: calc(100% + 8px); right: max(1.5rem, calc((100% - var(--wrap)) / 2 + 1.5rem)); width: min(480px, calc(100% - 3rem)); background: var(--surface-2); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); padding: .75rem; }
.search-panel[hidden] { display: none; }
.search-panel input { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .9rem; }
.search-panel input:focus { outline: none; border-color: var(--gold-lo); }
.search-panel input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-results { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 420px); overflow-y: auto; }
.search-results:not(:empty) { margin-top: .5rem; }
.search-results a { display: block; padding: .65rem .75rem; border-radius: 6px; color: var(--text); }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface); text-decoration: none; }
.search-results strong { display: block; font: 600 .95rem/1.3 var(--head); color: var(--gold-hi); margin-bottom: .2rem; }
.search-results span { display: block; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.search-results mark { background: rgba(201, 167, 100, .25); color: var(--text); border-radius: 2px; padding: 0 1px; }
.search-none { padding: .65rem .75rem; color: var(--dim); font-size: .92rem; }
mark.search-hit { background: rgba(201, 167, 100, .28); color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(201, 167, 100, .45); }
mark.search-hit-current { background: var(--gold-grad); color: #1b1f25; box-shadow: 0 0 0 2px var(--gold-hi); }

/* Headings & text */
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.2; color: #f3efe7; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { font: 500 .8rem/1 var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Sections */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; white-space: nowrap; }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-lo), transparent); }

/* Hero */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-mark { justify-self: center; width: min(280px, 70%); opacity: .95; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .9rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; padding: .95rem 1.4rem; border-radius: 6px; border: 1px solid var(--gold); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold-grad); color: #1b1f25; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--gold-hi); }
.btn-ghost:hover { background: rgba(201, 167, 100, .08); }

/* Principles */
.intro { max-width: none; margin-bottom: 2rem; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar { padding: 1.5rem; border-top: 2px solid var(--gold); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.pillar h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .95rem; margin: 0; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.app-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s, transform .2s; }
a.app-card:hover { border-color: var(--gold-lo); transform: translateY(-2px); text-decoration: none; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; background: var(--gold-grad); display: grid; place-items: center; margin-bottom: 1.1rem; color: #1f242b; }
.app-icon svg { width: 36px; height: 36px; }
.app-card h3 { margin-bottom: .35rem; }
.app-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; flex: 1; }
.tag { align-self: flex-start; font: 500 .72rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); }
.tag-live { border-color: var(--gold-lo); color: var(--gold-hi); }

/* App pages */
.app-icon-lg { justify-self: center; width: min(220px, 60%); height: auto; border-radius: 22%; box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 2px var(--gold); }
/* Convex glass over an app icon: top-left reflection with a smooth light point */
.icon-glass { position: relative; display: block; }
.icon-glass .glass-img { display: block; width: 100%; height: auto; border-radius: 22%; }
.icon-glass::before, .icon-glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.icon-glass::after { z-index: 2;
  background:
    radial-gradient(26% 19% at 20% 14%, rgba(255,255,255,1) 0%, rgba(255,255,255,.96) 5%, rgba(255,255,255,.84) 10%, rgba(255,255,255,.64) 16%, rgba(255,255,255,.45) 23%, rgba(255,255,255,.30) 31%, rgba(255,255,255,.19) 40%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.055) 62%, rgba(255,255,255,.02) 76%, rgba(255,255,255,0) 92%),
    radial-gradient(130% 120% at 45% 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,.38) 100%);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.55), inset 0 -10px 18px rgba(0,0,0,.35); }
.icon-glass::before { z-index: 1; inset: 4% 4% auto 4%; height: 54%; border-radius: 20% 20% 50% 50% / 26% 26% 70% 70%;
  background: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.22) 30%, rgba(255,255,255,.06) 60%, rgba(255,255,255,0) 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 15% 0%, #000 45%, transparent 80%); mask-image: radial-gradient(120% 100% at 15% 0%, #000 45%, transparent 80%); }
.btn-soon { color: var(--muted); border-color: var(--line); background: var(--surface); cursor: default; }
.play-badge img { height: 56px; width: auto; }
.pillars-3 { grid-template-columns: repeat(3, 1fr); }
.pillar ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.pillar li { margin-bottom: .45rem; }
.pillar li::marker { color: var(--gold); }
.pillar li strong { color: var(--text); font-weight: 600; }
.shots-wrap { position: relative; }
.shots { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem 0 1rem;
  --fl: 0px; --fr: 64px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.has-nav .shots { scrollbar-width: none; --fl: 56px; --fr: 56px; }
.has-nav .shots::-webkit-scrollbar { display: none; }
.has-nav.at-start .shots { --fl: 0px; }
.has-nav.at-end .shots { --fr: 0px; }
.shots-nav { position: absolute; z-index: 2; top: calc(50% - .4rem); transform: translateY(-50%); width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); background: rgba(23, 26, 31, .88); color: var(--gold-hi); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: opacity .2s, background-color .2s, color .2s; }
.shots-nav[hidden] { display: none; }
.shots-nav:hover { background: var(--gold); color: #1b1f25; }
.shots-nav.prev { left: -23px; }
.shots-nav.next { right: -23px; }
.shots-nav.is-off { opacity: 0; pointer-events: none; }
.shots figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.shots img { height: 480px; width: auto; border-radius: 12px; border: 1px solid var(--gold); background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.panel p { color: var(--muted); font-size: .95rem; }
.panel p:last-child { margin-bottom: 0; }
.panel-foot { padding-top: .25rem; }
.faq > details { max-width: 860px; }
.badge-list { padding-left: 1.1rem; margin: 0; }
.badge-list li { margin-bottom: .4rem; }
.badge-list li::marker { color: var(--gold); }
.badge-list strong { color: var(--text); }

/* About / contact */
.about-text { max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.panel dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; }
.panel dt { color: var(--dim); font: 500 .8rem/1.9 var(--head); letter-spacing: .16em; text-transform: uppercase; }
.panel dd { margin: 0; }

/* Document pages (privacy, terms, support) */
.doc { padding: 3.5rem 0 4.5rem; }
.doc .wrap { max-width: 800px; }
.doc h1 { margin-bottom: .4rem; }
.doc .meta { color: var(--dim); font-size: .9rem; margin-bottom: 2.25rem; }
.doc h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; padding-left: .8rem; border-left: 3px solid var(--gold); }
.doc h3 { margin: 1.5rem 0 .5rem; }
.doc ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .45rem; }
.doc li::marker { color: var(--gold); }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.doc .toc { columns: 2; gap: 2rem; padding: 0; list-style: none; margin: 0 0 1rem; }
.toc li { margin: 0 0 .35rem; break-inside: avoid; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; position: relative; padding-right: 3rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.25rem; top: .85rem; color: var(--gold); font: 500 1.3rem/1 var(--head); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 1.25rem 1rem; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 2.5rem 0; color: var(--dim); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-hi); }
.foot-brand { display: flex; align-items: center; gap: .6rem; }
.foot-brand img { width: 26px; height: 26px; }

/* 404 */
.notfound { text-align: center; padding: 6rem 0; }
.notfound img { width: 110px; margin: 0 auto 1.5rem; }
.notfound .lead { margin: 0 auto 2rem; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .app-icon-lg { order: -1; justify-self: start; width: 112px; }
  .pillars-3 { grid-template-columns: 1fr; }
  .shots img { height: 400px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .doc .toc { columns: 1; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; padding-top: .75rem; padding-bottom: .5rem; }
  .nav { gap: .8rem; justify-content: center; }
  .nav a { font-size: .82rem; letter-spacing: .08em; }
  .section { padding: 3.25rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .panel dl { grid-template-columns: 1fr; gap: .1rem; }
  .panel dd { margin-bottom: .6rem; }
}
@media (max-width: 380px) {
  .nav { gap: .5rem; }
  .nav a { font-size: .78rem; letter-spacing: .04em; }
  .search-btn { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.nowrap { white-space: nowrap; }
.pillar .pillar-lead { color: var(--text); font-size: .95rem; margin: .25rem 0 .5rem; }
/* Word lists page */
.wl-intro { color: var(--muted); margin: -.75rem 0 1.25rem; }
.doc .section-head { margin-top: 2.75rem; margin-bottom: 1.25rem; }
.doc .section-head h2 { margin: 0; padding: 0; border: 0; }
.wl-count { font-weight: 400; color: var(--dim); font-size: .9rem; margin-left: .35rem; }
.wl h3 { font-size: .95rem; color: var(--gold-hi); margin: .75rem 0 .25rem; }
.wl-words { color: var(--muted); font-size: .93rem; line-height: 1.75; }
/* Home page: real app icons under glass */
.app-card .app-card-icon { width: 64px; height: 64px; border-radius: 22%; margin-bottom: 1.1rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 0 2px var(--gold); }
/* Under-construction banner for pages not yet live */
.construction { background: repeating-linear-gradient(135deg, rgba(201, 167, 100, .16) 0 14px, rgba(201, 167, 100, .07) 14px 28px); border-bottom: 1px solid var(--gold); color: var(--text); font-size: .95rem; }
.construction .wrap { padding-top: .8rem; padding-bottom: .8rem; text-align: center; }
.construction strong { color: var(--gold-hi); font-family: var(--head); letter-spacing: .06em; }
