/* Nistikon support site — "illuminated manuscript, modernized"
   Cormorant Garamond (display) + Spectral (body), byzantine red & gold on parchment. */

:root {
  --parchment:      #F5EEDC;
  --parchment-deep: #ECE1C4;
  --card:           #FCF8EC;
  --card-line:      rgba(122, 94, 18, 0.18);
  --byzantine:      #8B1E1E;
  --byzantine-2:    #A32C2C;
  --gold:           #C9971A;
  --gold-soft:      #D4A017;
  --gold-deep:      #7A5E12;
  --ink:            #2C2620;
  --ink-soft:       #5C5346;
  --night:          #141210;
  --hair:           rgba(139, 30, 30, 0.16);
  --gold-hair:      rgba(201, 151, 26, 0.40);
  --shadow:         0 18px 50px -20px rgba(43, 25, 12, 0.45);
  --radius:         18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --parchment:      #141210;
    --parchment-deep: #0E0C0A;
    --card:           #1F1B16;
    --card-line:      rgba(212, 160, 23, 0.20);
    --byzantine:      #FF8A8A;
    --byzantine-2:    #FF9E9E;
    --gold:           #E9C25A;
    --gold-soft:      #F0CC6B;
    --gold-deep:      #E9C25A;
    --ink:            #F1E7D2;
    --ink-soft:       #B9AE97;
    --hair:           rgba(255, 138, 138, 0.20);
    --gold-hair:      rgba(233, 194, 90, 0.32);
    --shadow:         0 20px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(201,151,26,0.10), transparent 60%),
    radial-gradient(90% 70% at 50% 120%, rgba(139,30,30,0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: 0.35; } }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.narrow { max-width: 760px; }

/* ---- Typography ---- */
h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: 0.2px;
}
a { color: var(--byzantine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kicker {
  font-family: "Spectral", serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before, .kicker.center::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold-hair);
}
.kicker.center { justify-content: center; }

/* ---- Cross mark ---- */
.cross { display: inline-block; color: var(--gold); flex: none; }
.cross svg { display: block; fill: currentColor; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(150%) blur(10px);
  background: color-mix(in srgb, var(--parchment) 82%, transparent);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 700; color: var(--byzantine); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 0.86rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.nav-links a:hover { color: var(--byzantine); text-decoration: none; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---- Hero ---- */
.hero { text-align: center; padding: 84px 0 40px; }
.hero .icon {
  width: 128px; height: 128px; border-radius: 29%;
  box-shadow: 0 0 0 1px var(--gold-hair), 0 22px 48px -18px rgba(139,30,30,0.55);
  margin-bottom: 30px;
}
.hero h1 { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 600; color: var(--byzantine); margin-bottom: 8px; }
.hero .tagline { font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-style: italic; color: var(--ink-soft); max-width: 30ch; margin: 0 auto 22px; line-height: 1.35; }
.hero .meta { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }

.hook {
  max-width: 640px; margin: 30px auto 0; padding: 26px 30px;
  border: 1px solid var(--gold-hair); border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 90%, transparent), transparent);
}
.hook .q { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.hook .a { color: var(--ink-soft); font-size: 1rem; margin-top: 4px; }

/* ---- Section rhythm ---- */
section.block { padding: 56px 0; }
.section-head { margin-bottom: 34px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 2.9rem); margin-top: 12px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; max-width: 60ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--gold-hair), transparent); margin: 0; }

/* ---- Feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, border-color 0.35s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-hair); }
.feature .ico { font-size: 1.7rem; line-height: 1; }
.feature h3 { font-size: 1.5rem; margin: 14px 0 6px; color: var(--byzantine); }
.feature p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

/* ---- Fast-level legend ---- */
.levels {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 26px;
}
.level { display: flex; align-items: center; gap: 13px; }
.level .glyph {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem;
  border: 1px solid var(--card-line);
}
.level .name { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.level .desc { font-size: 0.82rem; color: var(--ink-soft); }
.g-free   { background: rgba(201,151,26,0.16); }
.g-fish   { background: rgba(58,102,150,0.18); }
.g-wine   { background: rgba(122,52,110,0.16); }
.g-strict { background: rgba(74,110,64,0.18); }
.g-plain  { background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }

/* ---- Premium split ---- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--card-line); border-radius: var(--radius); padding: 28px; background: var(--card); }
.tier.pro { border-color: var(--gold-hair); box-shadow: var(--shadow); position: relative; }
.tier h3 { font-size: 1.7rem; color: var(--byzantine); }
.tier .price { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; color: var(--gold-deep); margin: 4px 0 16px; }
.tier ul { list-style: none; }
.tier li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); font-size: 0.98rem; }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; top: 9px; }
.badge { position: absolute; top: -12px; right: 22px; background: var(--byzantine); color: #FCF8EC; font-family: "Spectral", serif; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* ---- Vow / privacy banner ---- */
.vow {
  text-align: center; border-top: 1px solid var(--gold-hair); border-bottom: 1px solid var(--gold-hair);
  padding: 52px 0;
}
.vow p { font-family: "Cormorant Garamond", serif; font-size: clamp(1.6rem, 4.4vw, 2.5rem); font-style: italic; color: var(--ink); max-width: 22ch; margin: 12px auto 0; line-height: 1.25; }
.vow .em { color: var(--byzantine); font-style: normal; }

/* ---- FAQ ---- */
.faq details {
  border-bottom: 1px solid var(--hair); padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative;
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-family: "Spectral", serif; font-size: 1.6rem; transition: transform 0.3s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding: 0 40px 18px 0; font-size: 1rem; }

/* ---- Contact card ---- */
.contact-card {
  text-align: center; background: var(--card); border: 1px solid var(--gold-hair);
  border-radius: var(--radius); padding: 44px 30px;
}
.contact-card .mail {
  display: inline-block; margin-top: 14px; font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem; font-weight: 600; color: var(--byzantine);
  border-bottom: 1px solid var(--gold-hair);
}

/* ---- Footer ---- */
.foot { background: var(--night); color: #C9BBA0; margin-top: 60px; padding: 46px 0 40px; position: relative; z-index: 2; }
.foot a { color: var(--gold-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: center; justify-content: space-between; }
.foot .brand { color: #F0CC6B; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .priest { width: 100%; text-align: center; font-style: italic; color: #8C7D64; font-size: 0.92rem; padding-top: 22px; margin-top: 8px; border-top: 1px solid rgba(201,151,26,0.15); }
.foot .cr { width: 100%; text-align: center; font-size: 0.8rem; color: #6E6250; }

/* ---- Legal pages ---- */
.legal-hero { text-align: center; padding: 64px 0 30px; }
.legal-hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); color: var(--byzantine); }
.legal-hero .app { color: var(--ink-soft); font-style: italic; margin-top: 6px; }
.legal-hero .date { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-top: 12px; }
.legal { padding-bottom: 40px; }
.legal .card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(26px, 5vw, 52px); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.75rem; color: var(--byzantine); margin: 34px 0 12px; padding-left: 16px; border-left: 3px solid var(--gold); }
.legal h2:first-of-type { margin-top: 4px; }
.legal p { margin-bottom: 15px; color: var(--ink); }
.legal ul { margin: 0 0 15px 22px; }
.legal li { margin-bottom: 9px; color: var(--ink); }
.legal .highlight {
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent);
  border-left: 3px solid var(--gold); border-radius: 6px; padding: 20px 24px; margin: 6px 0 26px;
  font-size: 1.08rem; color: var(--ink);
}
.legal .contact { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--hair); }
.legal .contact h2 { border: 0; padding: 0; }
.legal .contact a { font-size: 1.2rem; }

/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
[data-rise] { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
