/* ============================================================
   Solace Technologies — solacetechnologies.net
   Design system: "Golden Hour"
   Warm paper, kitchen-table light, night-band trademark moments.
   ============================================================ */

:root {
  --paper: #FBF8F2;
  --paper-2: #F5EFE5;
  --paper-3: #EFE7D9;
  --ink: #211B15;
  --ink-soft: #4C443B;
  --mute: #837768;
  --line: #E6DECF;
  --gold: #C2955A;
  --gold-deep: #A0773C;
  --glow: #F3DCAB;
  --glow-2: #EDCB8B;
  --night: #0D0B08;
  --night-2: #17130E;
  --night-ink: #F8F4EC;
  --night-mute: #B5AA99;
  --accent-link: #8A6430;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1120px;
  --radius: 14px;
  --shadow-soft: 0 2px 24px rgba(60, 44, 20, 0.07);
  --shadow-card: 0 1px 2px rgba(60, 44, 20, 0.05), 0 12px 40px rgba(60, 44, 20, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--glow); color: var(--ink); }

/* ---------- Typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.small, .fineprint { font-size: 0.84rem; color: var(--mute); line-height: 1.6; }
.fineprint a { color: var(--mute); text-decoration: underline; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
}

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 2rem;
  height: 66px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: baseline; gap: 0.55rem;
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFE9BC, var(--gold) 62%, var(--gold-deep));
  box-shadow: 0 0 10px rgba(216, 172, 96, 0.75);
  align-self: center;
}

.nav-links { display: flex; gap: 1.6rem; align-items: center; margin-left: auto; }
.nav-links a {
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--gold-deep); }

.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 0.5rem 1.15rem; border-radius: 99px; font-weight: 500;
}
.nav-cta:hover { background: #000; text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem 24px 1.6rem; gap: 1.1rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Announcement ribbon ---------- */

.ribbon {
  background: var(--night); color: var(--night-ink);
  font-size: 0.82rem; text-align: center; padding: 0.55rem 18px;
  letter-spacing: 0.02em;
}
.ribbon a { color: var(--glow); text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 9vw, 7.5rem);
  background:
    radial-gradient(1100px 640px at 78% -8%, rgba(240, 205, 138, 0.5), transparent 60%),
    radial-gradient(760px 460px at 12% 110%, rgba(238, 212, 158, 0.35), transparent 60%),
    linear-gradient(180deg, #FDFBF6, var(--paper));
}
.hero h1 { max-width: 15em; }
.hero .lede { margin-top: 1.4rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  padding: 0.78rem 1.7rem; border-radius: 99px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #000; text-decoration: none; transform: translateY(-1px); }

.btn.gold {
  background: linear-gradient(140deg, var(--glow-2), var(--gold));
  border-color: rgba(160, 119, 60, 0.4);
  color: #2A2013;
}
.btn.gold:hover { background: linear-gradient(140deg, var(--glow), var(--gold)); }

.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink-soft);
}
.btn.ghost:hover { background: var(--paper-2); }

.btn.on-night { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn.on-night:hover { background: #fff; }

/* ---------- Cards ---------- */

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-weight: 500; font-size: 0.92rem; }

.card.on-paper2 { background: var(--paper); }

/* ---------- Night band (trademark moments) ---------- */

.band-night {
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
  padding: clamp(4.5rem, 10vw, 7.5rem) 24px;
}
.band-night .promise {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
.band-night .promise sup { font-size: 0.4em; letter-spacing: 0; color: var(--night-mute); }
.band-night .attribution { margin-top: 1.6rem; color: var(--night-mute); font-size: 0.9rem; }

.band-dusk {
  background: linear-gradient(170deg, var(--night-2), var(--night));
  color: var(--night-ink);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.band-dusk h2 { color: #fff; }
.band-dusk p { color: var(--night-mute); }
.band-dusk .card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.band-dusk .card h3 { color: var(--night-ink); }
.band-dusk .card p { color: var(--night-mute); }
.band-dusk a { color: var(--glow); }

/* ---------- Warm band ---------- */

.band-warm {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(240, 205, 138, 0.42), transparent 65%),
    var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; gap: 2.2rem; } }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--gold-deep);
}
.stat-label { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.3rem; }

/* ---------- Quotes / testimonials ---------- */

.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.8rem; box-shadow: var(--shadow-soft);
}
.quote blockquote {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink);
}
.quote figcaption { margin-top: 1.1rem; font-size: 0.86rem; color: var(--mute); }

/* ---------- Plans ---------- */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; align-items: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.plan.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-card);
  position: relative;
}
.plan.featured::before {
  content: "Most chosen";
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(140deg, var(--glow-2), var(--gold));
  color: #2A2013; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.9rem; border-radius: 99px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.25rem; }
.plan .plan-tag { font-size: 0.85rem; color: var(--mute); margin: 0.2rem 0 1.1rem; }
.plan ul { list-style: none; margin: 0 0 1.4rem; flex: 1; }
.plan li { padding: 0.42rem 0 0.42rem 1.5rem; position: relative; font-size: 0.93rem; color: var(--ink-soft); border-top: 1px solid var(--paper-3); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.plan .btn { text-align: center; }

/* ---------- Timeline ---------- */

.timeline { position: relative; margin: 2.5rem 0 0; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(var(--gold), var(--line));
}
.tl-item { position: relative; padding: 0 0 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2rem; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9BC, var(--gold));
  box-shadow: 0 0 0 3px var(--paper), 0 0 12px rgba(216, 172, 96, 0.6);
}
.tl-year { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); font-weight: 600; }
.tl-item h3 { margin: 0.25rem 0 0.4rem; }
.tl-item p { color: var(--ink-soft); font-size: 0.96rem; max-width: 44em; }

/* ---------- Newsroom ---------- */

.pr-list { display: grid; gap: 1rem; }
.pr-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  align-items: baseline;
}
@media (max-width: 620px) { .pr-row { grid-template-columns: 1fr; gap: 0.3rem; } }
.pr-date { font-size: 0.85rem; color: var(--mute); }
.pr-row h3 { font-size: 1.12rem; }
.pr-row h3 a { color: var(--ink); }
.pr-row h3 a:hover { color: var(--gold-deep); text-decoration: none; }
.pr-row p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.35rem; }

/* Press release article */
.pr-article { padding: clamp(3rem, 7vw, 5rem) 0; }
.pr-article .kicker { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.pr-article h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0.9rem 0 0.5rem; }
.pr-article .dateline { color: var(--mute); font-size: 0.92rem; margin-bottom: 2.2rem; }
.pr-article .body p { margin-bottom: 1.25rem; max-width: 46em; }
.pr-article .body h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.pr-article .boiler { margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.pr-article .boiler h2 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.6rem; }
.pr-article .boiler p { font-size: 0.88rem; color: var(--mute); margin-bottom: 1rem; max-width: 50em; }
blockquote.pull {
  border-left: 3px solid var(--gold);
  margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); max-width: 42em;
}
blockquote.pull cite { display: block; margin-top: 0.7rem; font-style: normal; font-family: var(--sans); font-size: 0.86rem; color: var(--mute); }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.4rem; color: var(--gold-deep); font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 44em; }
.faq-item .faq-a p { margin-bottom: 0.8rem; }

/* ---------- People ---------- */

.person { text-align: left; }
.person .headshot {
  width: 100%; aspect-ratio: 1 / 1.05; border-radius: var(--radius);
  margin-bottom: 1.1rem; position: relative; overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(240, 205, 138, 0.55), transparent 60%),
    linear-gradient(165deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.person .headshot .initials {
  font-family: var(--serif); font-size: 3rem; color: var(--gold-deep); opacity: 0.75;
}
.person h3 { font-size: 1.15rem; }
.person .role { color: var(--gold-deep); font-size: 0.88rem; font-weight: 500; margin: 0.15rem 0 0.6rem; }
.person p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.spec th, table.spec td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); }
table.spec td:first-child { font-weight: 500; }

/* ---------- Legal pages ---------- */

.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.legal .effective { color: var(--mute); font-size: 0.9rem; margin: 0.6rem 0 2.4rem; }
.legal h2 { font-size: 1.2rem; margin: 2.4rem 0 0.7rem; }
.legal p, .legal li { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.9rem; max-width: 50em; }
.legal ol, .legal ul { padding-left: 1.4rem; }
.legal .clause-num { color: var(--gold-deep); font-weight: 600; margin-right: 0.4rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night); color: var(--night-mute);
  padding: 4rem 0 2.5rem; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .wordmark { color: var(--night-ink); font-size: 1.35rem; }
.footer-tagline { margin-top: 0.9rem; font-family: var(--serif); color: var(--night-mute); font-size: 0.98rem; max-width: 22em; }
.site-footer h4 {
  color: var(--night-ink); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--night-mute); }
.site-footer a:hover { color: var(--night-ink); text-decoration: none; }
.footer-legal {
  margin-top: 3.2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: baseline;
  font-size: 0.8rem;
}
.footer-legal .spacer { flex: 1; }
.footer-legal a { color: var(--night-mute); }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Scene illustrations ---------- */

.scene {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.scene.on-night { border-color: rgba(255, 255, 255, 0.12); }
figure.scene-fig { margin: 0; }
figure.scene-fig figcaption { margin-top: 0.7rem; font-size: 0.82rem; color: var(--mute); }
.card .card-img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}

/* ---------- Figure (brochure chart) ---------- */

.figure-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-soft);
}
.figure-box figcaption { margin-top: 1rem; font-size: 0.82rem; color: var(--mute); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.maxw { max-width: 46em; }
.tm { font-size: 0.55em; vertical-align: super; letter-spacing: 0; }

/* Photo headshots */
img.headshot { object-fit: cover; }

/* Timeline photos */
.tl-photo {
  display: block; max-width: 420px; width: 100%; height: auto;
  margin-top: 0.9rem; border-radius: 10px;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
