/* Kryon — shared site styles for subpages (blog, support, privacy).
   Mirrors the design system of the main landing page (index.html). */

:root {
  --teal: #278795;
  --teal-soft: rgba(39, 135, 149, 0.1);
  --deep: #184E5A;
  --ink: #1E1E1E;
  --cream: #F3F0E9;
  --cream-2: #EEEAE0;
  --paper: #FFFFFF;
  --muted: #5B5A51;
  --muted-2: #6B6A61;
  --faint: #9A988D;
  --line: rgba(30, 30, 30, 0.08);
  --line-strong: rgba(30, 30, 30, 0.12);
  --footer: #123C46;
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--teal); color: #fff; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@keyframes kryRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kryDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(3%,-4%) scale(1.08); } }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Nav ---------- */
.kry-nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(243, 240, 233, 0.72);
  border-bottom: 1px solid var(--line);
}
.kry-nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.kry-nav .logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.kry-nav .logo img { height: 30px; width: auto; display: block; }
.kry-nav .logo span { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.kry-nav .links { display: flex; align-items: center; gap: 34px; }
.kry-nav .links a { text-decoration: none; color: #3A3A37; font-size: 15px; font-weight: 500; }
.kry-nav .links a:hover { color: var(--teal); }
.kry-nav .links a.active { color: var(--teal); font-weight: 600; }
.kry-nav .links a.cta { background: var(--ink); color: var(--cream); font-weight: 600; padding: 10px 20px; border-radius: 999px; }
.kry-nav .links a.cta:hover { background: var(--teal); color: #fff; }
/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 72px 0 56px; }
.page-hero .blob {
  position: absolute; top: -180px; right: -180px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(39,135,149,0.18), rgba(39,135,149,0) 62%);
  filter: blur(18px); animation: kryDrift 16s ease-in-out infinite; pointer-events: none;
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em;
  font-weight: 800; max-width: 820px; margin: 0 0 20px;
}
.page-hero .lede { font-size: 19px; line-height: 1.6; color: #48473F; max-width: 620px; }
.page-hero .meta {
  margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted-2);
}
.page-hero .meta .sep { opacity: 0.4; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; padding-bottom: 24px; }
.post-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(39, 135, 149, 0.35);
  box-shadow: 0 24px 48px -28px rgba(24, 78, 90, 0.35);
}
.post-card .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); padding: 4px 9px; border-radius: 6px;
  align-self: flex-start; margin-bottom: 18px;
}
.post-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 10px; }
.post-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.post-card .more { margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--teal); }
.post-card .datemeta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-bottom: 8px; }

/* ---------- Article prose ---------- */
.article { padding: 8px 0 72px; }
.article .prose h2 {
  font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin: 46px 0 14px;
}
.article .prose h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.article .prose p, .article .prose li { font-size: 17px; line-height: 1.75; color: #3A392F; margin-bottom: 16px; }
.article .prose ul, .article .prose ol { padding-left: 24px; margin-bottom: 16px; }
.article .prose a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article .prose strong { color: var(--ink); }
.article .prose em { color: var(--muted); }
.article .prose table {
  border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 14.5px;
  background: var(--paper); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-strong);
}
.article .prose th, .article .prose td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.article .prose th {
  background: var(--cream-2); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep); font-weight: 500;
}
.article .prose tr:last-child td { border-bottom: none; }
.article .prose blockquote {
  border-left: 3px solid var(--teal); background: var(--teal-soft);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0;
}
.article .prose blockquote p { margin: 0; color: var(--deep); }

/* ---------- Step rows (support / how-to) ---------- */
.step-rows { margin-top: 8px; }
.step-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line-strong);
}
.step-row:last-child { border-bottom: 1px solid var(--line-strong); }
.step-row .num { font-family: var(--mono); font-size: 22px; color: var(--teal); line-height: 1.3; }
.step-row .body .t { font-size: 20px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.step-row .body .d { font-size: 15.5px; color: var(--muted); max-width: 620px; line-height: 1.65; }
.step-row .chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--faint);
  text-transform: uppercase; white-space: nowrap; padding-top: 6px;
}
/* ---------- Cards grid (support) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.info-card .icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; color: var(--teal); font-size: 17px; margin-bottom: 20px;
}
.info-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.info-card p + p { margin-top: 10px; }
.info-card code, .msg code {
  font-family: var(--mono); font-size: 13px; color: var(--deep);
  background: var(--teal-soft); padding: 2px 6px; border-radius: 5px;
}

/* ---------- Section shells ---------- */
.band { background: var(--cream-2); border-top: 1px solid rgba(30,30,30,0.06); border-bottom: 1px solid rgba(30,30,30,0.06); }
.sec { padding: 80px 0; scroll-margin-top: 88px; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; max-width: 680px; margin: 0 0 12px; }
.sec-head .sub { font-size: 17px; color: var(--muted-2); max-width: 580px; }

/* ---------- Chat mock (support) ---------- */
.chat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(24,78,90,0.25), 0 6px 18px -8px rgba(24,78,90,0.12);
}
.chat .chat-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid rgba(30,30,30,0.07); background: #FAF8F3;
}
.chat .chat-top .id { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: #48473F; }
.chat .chat-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(39,135,149,0.18); }
.chat .chat-top .live {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--teal);
  background: var(--teal-soft); padding: 4px 9px; border-radius: 6px;
}
.chat .msgs { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; font-size: 14.5px; line-height: 1.45; padding: 12px 15px; }
.msg.in { align-self: flex-start; background: #EFEBE1; color: var(--ink); border-radius: 16px 16px 16px 4px; }
.msg.out { align-self: flex-end; background: rgba(39,135,149,0.1); border: 1px solid rgba(39,135,149,0.22); border-radius: 16px 16px 4px 16px; }
.msg .from {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 7px;
}
.msg .btns { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.msg .btn-solid { font-size: 13px; font-weight: 600; color: #fff; background: var(--teal); padding: 7px 16px; border-radius: 999px; }
.msg .btn-ghost { font-size: 13px; font-weight: 600; color: var(--deep); background: #fff; border: 1px solid rgba(39,135,149,0.3); padding: 7px 16px; border-radius: 999px; }
.msg .note { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--teal); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq .a { padding: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 720px; }
.faq .a code { font-family: var(--mono); font-size: 13px; color: var(--deep); background: var(--teal-soft); padding: 2px 6px; border-radius: 5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: var(--cream); position: relative; overflow: hidden; }
.cta-band .blob {
  position: absolute; bottom: -160px; left: -100px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(39,135,149,0.5), rgba(39,135,149,0) 65%);
  filter: blur(20px); animation: kryDrift 18s ease-in-out infinite; pointer-events: none;
}
.cta-band .inner { position: relative; padding: 76px 0; }
.cta-band .eyebrow { color: #7FCBD6; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; max-width: 640px; }
.cta-band p { font-size: 17.5px; line-height: 1.6; color: rgba(243,240,233,0.72); max-width: 520px; margin-bottom: 30px; }
.cta-band .btn {
  display: inline-block; text-decoration: none; background: var(--teal); color: #fff;
  font-size: 16px; font-weight: 600; padding: 15px 28px; border-radius: 999px;
}
.cta-band .btn:hover { background: #2FA0B0; }

/* ---------- Footer ---------- */
.kry-footer { background: var(--footer); color: rgba(243,240,233,0.7); }
.kry-footer .inner {
  padding: 34px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.kry-footer .logo { display: flex; align-items: center; gap: 11px; }
.kry-footer .logo img { height: 26px; width: auto; display: block; }
.kry-footer .logo span { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--cream); }
.kry-footer .mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; }
.kry-footer .links { font-size: 13.5px; }
.kry-footer .links a { color: rgba(243,240,233,0.85); text-decoration: none; }
.kry-footer .links a:hover { color: #fff; }

/* ---------- Mobile responsive ---------- */
@media (max-width: 760px) {
  /* Tighten side padding everywhere */
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }

  /* Nav */
  .kry-nav .links { gap: 18px; }
  .kry-nav .links a.hide-sm { display: none; }

  /* Section spacing */
  .sec { padding: 52px 0; }
  .page-hero { padding: 48px 0 36px; }
  .cta-band .inner { padding: 52px 0; }

  /* Footer — stack vertically */
  .kry-footer .inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 0; }

  /* Step rows — collapse to 2 cols, hide right chip */
  .step-row { grid-template-columns: 48px 1fr; }
  .step-row .chip { display: none; }

  /* Article tables — allow horizontal scroll instead of breaking layout */
  .article .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
