/* ============================================================
   Kalisstar — site styles
   Brand tokens mirror the app (gold/espresso inverted light theme)
   Display: Fraunces  ·  Body/UI: Inter  ·  Mark: 8-point North Star
   ============================================================ */

:root {
  /* Brand palette (from the app theme) */
  --gold:          #E5A923;   /* scaffold / page background      */
  --gold-light:    #F4BD3B;   /* cards / raised surfaces         */
  --cream:         #FBF1DD;   /* soft cream fills                */
  --cream-text:    #F5E6D3;   /* text on espresso                */
  --espresso:      #3D2418;   /* primary ink / accents           */
  --espresso-dark: #1A0F0A;   /* deepest brown                   */
  --espresso-mid:  #5A3621;   /* secondary brown                 */
  --ink:           #2A1812;   /* body text on gold               */
  --olive:         #6B7A16;   /* success                         */
  --error:         #B23A2C;   /* error / strike                  */

  --maxw: 1080px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(26, 15, 10, .45);
  --shadow-sm: 0 8px 24px -14px rgba(26, 15, 10, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--espresso);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 640; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p  { margin: 0 0 1.1em; }
a  { color: var(--espresso); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--espresso-mid); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--espresso-mid);
  margin: 0 0 .9rem;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(229, 169, 35, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61, 36, 24, .12);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .name {
  font-family: 'Fraunces', serif; font-weight: 640; font-size: 1.35rem;
  color: var(--espresso); letter-spacing: -.01em;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--espresso); }
.nav a:hover { opacity: .72; }
.nav .cta {
  background: var(--espresso-dark); color: var(--cream-text);
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav .cta:hover { background: var(--espresso); opacity: 1; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav a:not(.cta) { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(64px, 12vw, 120px) 0 clamp(48px, 8vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.22rem; max-width: 34ch; color: var(--ink); }
.hero .btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--espresso-dark); color: var(--cream-text); }
.btn-primary:hover { background: var(--espresso); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: rgba(61,36,24,.08); }

/* Hero signature: a calling-app rate card */
.call-card {
  background: var(--espresso-dark);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  box-shadow: var(--shadow);
  color: var(--cream-text);
  position: relative;
  overflow: hidden;
}
.call-card .glow {
  position: absolute; inset: -40% 30% auto -30%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(244,189,59,.35), transparent 70%);
  pointer-events: none;
}
.call-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; position: relative; }
.call-card .top .star-sm { width: 22px; height: 22px; }
.call-card .top span { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; color: var(--cream-text); }
.call-card .dest { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--cream-text); margin: 0 0 2px; position: relative; }
.call-card .sub { font-size: .92rem; color: rgba(245,230,211,.6); margin: 0 0 22px; position: relative; }
.call-card .rate { position: relative; }
.call-card .rate b { font-family: 'Fraunces', serif; font-size: 2.6rem; font-weight: 640; color: var(--gold-light); line-height: 1; }
.call-card .rate span { font-size: 1rem; color: rgba(245,230,211,.7); margin-left: 6px; }
.call-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; position: relative; }
.call-card .chip {
  font-size: .78rem; font-weight: 500; color: var(--cream-text);
  background: rgba(245,230,211,.1); border: 1px solid rgba(245,230,211,.16);
  padding: 5px 12px; border-radius: 999px;
}
.call-card .callbtn {
  display: flex; align-items: center; gap: 12px; position: relative;
}
.call-card .callbtn .disc {
  width: 52px; height: 52px; border-radius: 50%;
  background: #000; display: flex; align-items: center; justify-content: center;
}
.call-card .callbtn .disc svg { width: 24px; height: 24px; color: var(--cream-text); }
.call-card .callbtn .txt { font-size: .95rem; color: rgba(245,230,211,.8); }

/* ============================================================
   Sections
   ============================================================ */
section.band { padding: clamp(56px, 9vw, 96px) 0; }
section.band.cream { background: var(--cream); border-radius: 0; }
.section-head { max-width: 44ch; margin-bottom: 44px; }
.section-head p { color: var(--espresso-mid); font-size: 1.08rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--gold-light); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.step .n {
  font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 640;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--espresso-dark); color: var(--cream-text); margin-bottom: 16px;
}
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink); font-size: .98rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature {
  display: flex; gap: 16px; padding: 22px 24px;
  background: var(--cream); border-radius: var(--radius-sm);
  border: 1px solid rgba(61,36,24,.08);
}
section.cream .feature { background: var(--gold-light); border-color: rgba(61,36,24,.12); }
.feature .ico { flex: 0 0 auto; width: 26px; height: 26px; color: var(--espresso); }
.feature h3 { font-size: 1.08rem; margin-bottom: .25em; }
.feature p { margin: 0; font-size: .95rem; color: var(--ink); }

/* Pricing */
.price-card {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--espresso-dark); color: var(--cream-text);
  border-radius: var(--radius); padding: 46px 40px; box-shadow: var(--shadow);
}
.price-card .amt { font-family: 'Fraunces', serif; font-size: 3.6rem; font-weight: 640; color: var(--gold-light); line-height: 1; }
.price-card .amt span { font-size: 1.1rem; color: rgba(245,230,211,.7); font-family: 'Inter', sans-serif; font-weight: 500; }
.price-card .dest { margin: 14px 0 4px; font-size: 1.05rem; }
.price-card .fine { font-size: .88rem; color: rgba(245,230,211,.66); margin: 18px 0 0; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .shots { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }
.phone {
  border: 10px solid var(--espresso-dark);
  border-radius: 34px;
  background: var(--gold);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(135deg, var(--cream), var(--cream) 12px, #f4ead1 12px, #f4ead1 24px);
  color: var(--espresso-mid);
}
.phone .placeholder .star-ph { width: 34px; height: 34px; opacity: .5; }
.phone .placeholder .fn { font-family: 'Inter', monospace; font-size: .8rem; font-weight: 600; }
.phone .placeholder .hint { font-size: .74rem; opacity: .75; }
.shot-cap { text-align: center; margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--espresso); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details.qa {
  border-bottom: 1px solid rgba(61,36,24,.15); padding: 20px 0;
}
details.qa summary {
  font-family: 'Fraunces', serif; font-size: 1.18rem; font-weight: 600; color: var(--espresso);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; font-size: 1.5rem; color: var(--espresso-mid); transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { margin: 14px 0 0; color: var(--ink); font-size: 1rem; }

/* ============================================================
   CTA band + footer
   ============================================================ */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: 0 auto .5em; }
.cta-band p { max-width: 46ch; margin: 0 auto 28px; color: var(--espresso-mid); }

.site-foot {
  background: var(--espresso-dark); color: rgba(245,230,211,.8);
  padding: 56px 0 40px; font-size: .92rem;
}
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
.site-foot .brand .name { color: var(--cream-text); }
.site-foot h4 { color: var(--cream-text); font-family: 'Inter', sans-serif; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.site-foot a { color: rgba(245,230,211,.8); text-decoration: none; display: block; margin-bottom: 9px; }
.site-foot a:hover { color: var(--gold-light); }
.site-foot .tagline { margin: 14px 0 0; max-width: 30ch; color: rgba(245,230,211,.6); font-style: italic; }
.foot-legal {
  border-top: 1px solid rgba(245,230,211,.14); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(245,230,211,.55); font-size: .85rem;
}

/* ============================================================
   Legal / document pages
   ============================================================ */
.doc { background: var(--cream); min-height: 60vh; }
.doc .wrap { max-width: 760px; padding-top: 60px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .2em; }
.doc .updated { color: var(--espresso-mid); font-size: .95rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc p, .doc li { font-size: 1rem; color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 1.1em; }
.doc li { margin-bottom: .5em; }
.doc a { color: var(--espresso); }
.doc .toc {
  background: var(--gold-light); border-radius: var(--radius-sm);
  padding: 22px 26px; margin: 0 0 44px;
}
.doc .toc h4 { font-family: 'Inter', sans-serif; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso-mid); margin: 0 0 12px; }
.doc .toc a { display: block; margin-bottom: 7px; font-size: .95rem; }
.doc .callout {
  background: var(--gold-light); border-left: 4px solid var(--espresso);
  border-radius: 8px; padding: 16px 20px; margin: 24px 0; font-size: .95rem;
}

/* Contact page */
.contact-card {
  background: var(--espresso-dark); color: var(--cream-text);
  border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow);
  max-width: 520px; margin: 0 auto;
}
.contact-card .email {
  font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--gold-light);
  text-decoration: none; word-break: break-all;
}
.contact-card p { color: rgba(245,230,211,.8); }

.skip-link {
  position: absolute; left: -999px;
}
.skip-link:focus {
  left: 16px; top: 12px; background: var(--espresso-dark); color: var(--cream-text);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
:focus-visible { outline: 3px solid var(--espresso-dark); outline-offset: 2px; }
