/* TimeDesert — shared stylesheet */

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

:root {
  --sand: #e8dcc8;
  --dusk: #c4a882;
  --night: #1a1610;
  --text: #2e2820;
  --muted: #7a6e5f;
  --accent: #c97d3a;
  --line: rgba(255,255,255,0.08);
  --panel: rgba(255,255,255,0.04);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--night);
  color: var(--sand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ---------- Nav ---------- */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sand);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav a:not(.logo) {
  color: var(--dusk);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 2rem;
  transition: color 0.2s;
}
nav a:not(.logo):hover { color: var(--sand); }

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

header.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sand);
  max-width: 800px;
}
h1 em { font-style: normal; color: var(--accent); }
.sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.cta {
  margin-top: 2.5rem;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cta:hover { opacity: 0.85; }
.cta.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dusk);
}
.cta.ghost:hover { color: var(--sand); border-color: var(--dusk); opacity: 1; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */

.section {
  padding: 5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.section > p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 3rem;
}

hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  display: block;
  text-decoration: none;
  color: inherit;
}
a.card { transition: border-color 0.2s, background 0.2s; }
a.card:hover { border-color: var(--dusk); background: rgba(255,255,255,0.06); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.card .more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ---------- Steps ---------- */

.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.step h3 { font-size: 1rem; color: var(--sand); margin-bottom: 0.35rem; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

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

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
}
.plan.featured { border-color: var(--accent); }
.plan .badge {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.plan h3 { font-size: 1rem; color: var(--sand); margin-bottom: 0.5rem; }
.plan .price { font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.plan .period { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.plan p { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- About / stats ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-grid .blurb { color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.stat-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}
.stat .num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- Contact band ---------- */

.contact-band {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 4rem;
  text-align: center;
}
.contact-band h2 { font-size: 1.8rem; color: var(--sand); margin-bottom: 0.75rem; }
.contact-band p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-band a { color: var(--accent); text-decoration: none; font-size: 1.05rem; }
.contact-band a:hover { text-decoration: underline; }

/* ---------- Legal / long-form documents ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  width: 100%;
}
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.doc-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.doc-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.doc h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sand);
  margin: 2.75rem 0 0.85rem;
  letter-spacing: 0.01em;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 0.95rem; font-weight: 600; color: var(--dusk); margin: 1.5rem 0 0.5rem; }
.doc p, .doc li { color: #b9ad9c; font-size: 0.95rem; line-height: 1.8; }
.doc p { margin-bottom: 1rem; }
.doc ul, .doc ol { margin: 0 0 1.25rem 1.25rem; }
.doc li { margin-bottom: 0.55rem; }
.doc strong { color: var(--sand); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.summary-box {
  background: rgba(201,125,58,0.07);
  border: 1px solid rgba(201,125,58,0.28);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.summary-box p:last-child { margin-bottom: 0; }

.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc p {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.toc ol { margin: 0 0 0 1.1rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.88rem; }

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

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  color: var(--sand);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-top: 0.9rem; }
.faq .answer p, .faq .answer li { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }
.faq .answer p { margin-bottom: 0.75rem; }
.faq .answer ul, .faq .answer ol { margin: 0 0 0.75rem 1.25rem; }
.faq .answer li { margin-bottom: 0.4rem; }
.faq .answer a { color: var(--accent); text-decoration: none; }
.faq .answer a:hover { text-decoration: underline; }

/* ---------- Support contact panel ---------- */

.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact-panel h3 { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.contact-panel a { color: var(--sand); text-decoration: none; font-size: 1.05rem; }
.contact-panel a:hover { color: var(--accent); }
.contact-panel p { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

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

footer {
  margin-top: auto;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.07);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--sand); }
footer .links a { margin-left: 0.35rem; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  nav { padding: 1.2rem 1.5rem; }
  nav .nav-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
  nav a:not(.logo) { margin-left: 0; font-size: 0.85rem; }
  header.hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-band { padding: 3rem 1.5rem; }
  .doc { padding: 2.5rem 1.5rem 3.5rem; }
  footer { flex-direction: column; text-align: center; padding: 1.5rem; }
}
