:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --band: #f3ede3;
  --text: #1c1b19;
  --muted: #5f5e5a;
  --hint: #8a8980;
  --border: rgba(28, 27, 25, 0.12);
  --accent: #185fa5;
  --accent-soft: #e6f1fb;
  --stone: #7a6a52;
  --stone-soft: #f1ede6;
  --brand-ink: #662B09;
  --radius: 14px;
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif-brand: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --surface: #211e18;
    --band: #1d1a13;
    --text: #f3f1ea;
    --muted: #b3b1a8;
    --hint: #888780;
    --border: rgba(243, 241, 234, 0.14);
    --accent: #6fa8e6;
    --accent-soft: #15293f;
    --stone: #c2ad8f;
    --stone-soft: #2a241b;
    --brand-ink: #d8a35a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Editorial serif headings */
h1, h2 { font-family: var(--font-serif-brand); font-weight: 500; letter-spacing: -0.01em; }

/* Warm depth on raised cards + gentle hover lift on clickable ones */
.pillar, .feature, .app-card, .app-chip, a.app-anchor { box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04); }
.app-chip, a.app-anchor { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.app-chip:hover, a.app-anchor:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28, 27, 25, 0.09); }

/* Full-width tinted section band + faint mesa-ridge divider */
.band { background: var(--band); padding: 0 0 36px; }
.ridge { display: block; width: 100%; height: 26px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.brand:hover { text-decoration: none; color: var(--brand-ink); }
.hero-logo { display: block; width: clamp(260px, 52vw, 390px); height: auto; margin: 0 auto 14px; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 36px 0 52px; }
.hero .eyebrow { font-family: var(--font-serif-brand); text-transform: uppercase; color: var(--brand-ink); font-size: 12px; letter-spacing: 0.13em; margin: 0 auto 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }
.privacy-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 30px 0 0;
}
.privacy-badges li {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.privacy-badges li::before { content: "✓"; color: var(--accent); font-weight: 600; }

/* App grid */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 8px 0 72px; }
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.app-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-card .icon { width: 52px; height: 52px; border-radius: 13px; overflow: hidden; flex: none; border: 0.5px solid var(--border); }
.app-card .icon img { width: 100%; height: 100%; display: block; }
.app-card h2 { font-size: 19px; margin: 0; }
.app-card .tag { color: var(--muted); font-size: 14px; }
.app-card .desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

/* Feature chips — drawn from each app's own palette */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; flex: 1; align-content: flex-start; }
.chips li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
}
.chips .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.app-card .actions { display: flex; align-items: center; gap: 16px; }
.btn-inform { background: #F27333; border-color: #F27333; color: #fff; }
.btn-inform:hover { color: #fff; opacity: 0.92; }
.btn-cloudbreak { background: #2E87F2; border-color: #2E87F2; color: #fff; }
.btn-cloudbreak:hover { color: #fff; opacity: 0.92; }

/* Home — studio value pillars */
.home-section { padding: 26px 0 0; }
.home-section > h2 { text-align: center; font-family: var(--font-serif-brand); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 500; color: var(--brand-ink); margin: 0 0 6px; }
.home-section > .sub { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.pillar .pi { width: 24px; height: 24px; margin-bottom: 11px; color: var(--brand-ink); }
.pillar h3 { font-size: 16px; margin: 0 0 5px; }
.pillar p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Home — compact app chips that link to the detail pages */
.app-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.app-chip { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.app-chip:hover { text-decoration: none; border-color: var(--accent); }
.app-chip img { width: 46px; height: 46px; border-radius: 12px; border: 0.5px solid var(--border); flex: none; }
.app-chip .ac-name { font-size: 16px; font-weight: 500; display: block; }
.app-chip .ac-tag { font-size: 13px; color: var(--muted); }
.app-chip .ac-arrow { margin-left: auto; color: var(--brand-ink); font-size: 18px; }

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { color: #fff; opacity: 0.92; }
.link-muted { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer, .site-footer a { color: var(--hint); font-size: 14px; }
.site-footer .links { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--text); }

/* ---- Content & legal pages ---- */
.content { max-width: 740px; margin: 0 auto; padding: 52px 24px 80px; }
.content .back { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 22px; }
.content h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.content .updated { color: var(--hint); font-size: 14px; margin: 0 0 30px; }
.content .lede { font-size: 18px; color: var(--muted); line-height: 1.6; }
.content h2 { font-size: 21px; margin: 40px 0 10px; }
.content h3 { font-size: 16px; margin: 26px 0 6px; }
.content p, .content li { font-size: 16px; line-height: 1.7; }
.content ul { padding-left: 22px; margin: 8px 0; }
.content li { margin-bottom: 6px; }

.app-anchor { display: flex; align-items: center; gap: 12px; margin: 46px 0 2px; scroll-margin-top: 84px; }
.app-anchor .badge { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.app-anchor .badge svg { width: 24px; height: 24px; }
.app-anchor.inform .badge { background: rgba(242, 115, 51, 0.14); color: #F27333; }
.app-anchor.cloudbreak .badge { background: rgba(46, 135, 242, 0.14); color: #2E87F2; }
.app-anchor h2 { margin: 0; font-size: 21px; }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.callout strong { display: block; margin-bottom: 6px; }
.callout.accent { border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

.fn-ref { font-size: 0.72em; vertical-align: super; line-height: 0; text-decoration: none; color: var(--accent); font-weight: 500; padding: 0 1px; }
.fn-ref:hover { text-decoration: underline; }
.notes ol { padding-left: 20px; margin: 10px 0 0; }
.notes li { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; scroll-margin-top: 90px; }
.notes li strong { color: var(--text); }
.notes .back { font-size: 13px; text-decoration: none; margin-left: 4px; }
.turn-off { color: var(--text); font-weight: 500; }

.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 24px 0 8px; }
.contact-box .label { font-size: 14px; color: var(--muted); }
.contact-box .email { font-size: 18px; font-weight: 500; }

/* ---- App marketing pages ---- */
.app-hero { text-align: center; max-width: 680px; margin: 0 auto; padding: 60px 24px 36px; }
.app-hero .app-icon { width: 88px; height: 88px; border-radius: 21px; overflow: hidden; margin: 0 auto 20px; border: 0.5px solid var(--border); }
.app-hero .app-icon img { width: 100%; height: 100%; display: block; }
.app-hero h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.02em; }
.app-hero .tagline { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.store-note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }
.app-priv { font-size: 14px; color: var(--hint); margin: 18px 0 0; }

.section { max-width: 880px; margin: 0 auto; padding: 28px 24px; }
.section > h2 { text-align: center; font-size: 24px; margin: 8px 0 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .fi { width: 26px; height: 26px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.risk-scale { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 8px; }
.risk-scale span { font-size: 12px; font-weight: 500; color: #fff; border-radius: 999px; padding: 5px 13px; }

/* App detail — screenshot slideshow */
.shots { max-width: 720px; margin: 0 auto; }
.shot { display: none; flex-direction: column; align-items: center; }
.shot.is-active { display: flex; }
.shot .frame { width: 256px; border-radius: 30px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,0.12); background: var(--bg); }
.shot .frame img { width: 100%; display: block; }
.shot figcaption { margin-top: 18px; text-align: center; max-width: 440px; }
.shot figcaption strong { display: block; font-size: 17px; margin-bottom: 2px; }
.shot figcaption span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.shots-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.shots-nav .arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 18px; cursor: pointer; line-height: 1; }
.shots-nav .arrow:hover { border-color: var(--accent); }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: var(--border); cursor: pointer; }
.dots button.is-active { background: var(--accent); }

.section .lead { text-align: center; color: var(--muted); max-width: 580px; margin: -14px auto 26px; font-size: 16px; line-height: 1.6; }

/* App user guide */
.guide { max-width: 820px; margin: 0 auto; padding: 6px 24px 48px; }
.guide-lead { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 6px; max-width: 660px; }
.guide-step { display: grid; grid-template-columns: 228px 1fr; gap: 32px; align-items: center; padding: 30px 0; border-top: 1px solid var(--border); }
.guide-step:first-of-type { border-top: none; }
.guide-step.flip .gs-media { order: 2; }
.guide-step.noimg { grid-template-columns: 1fr; }
.gs-media { display: flex; justify-content: center; }
.gs-media .frame { width: 216px; border-radius: 28px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 10px 30px rgba(28, 27, 25, 0.12); }
.gs-media .frame img { width: 100%; display: block; }
.gs-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--band); color: var(--brand-ink); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.guide-step h3 { font-size: 19px; margin: 0 0 8px; }
.guide-step p { color: var(--muted); margin: 0 0 10px; line-height: 1.65; }
.guide-step ol, .guide-step ul { color: var(--muted); padding-left: 20px; margin: 0; line-height: 1.6; }
.guide-step li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .guide-step, .guide-step.flip { grid-template-columns: 1fr; gap: 16px; }
  .guide-step.flip .gs-media { order: 0; }
}
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.device { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04); }
.device .di { width: 26px; height: 26px; color: var(--brand-ink); margin-bottom: 10px; }
.device h3 { font-size: 16px; margin: 0 0 5px; }
.device p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

@media (max-width: 600px) {
  .nav { gap: 16px; font-size: 14px; }
  .brand { font-size: 15px; letter-spacing: 0.05em; }
  .hero-logo { margin: 0 auto 10px; }
  .hero { padding: 24px 0 36px; }
  .content h1, .app-hero h1 { font-size: 28px; }
}
