/* Caden marketing site. Light only, matches the iOS design language:
   off-white canvas, white cards with soft shadow, Manrope, coral accent. */
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --raised: #F0F0F4;
  --raised-high: #E4E4EA;
  --border: #E6E6EC;
  --text: #111114;
  --secondary: #6D6D78;
  --tertiary: #A3A3AD;
  --ink: #111114;
  --on-ink: #FFFFFF;
  --accent: #FF5A36;
  --accent-soft: #FFE9E3;
  --good: #1FB463;
  --good-soft: #DDF6E7;
  --okay: #F2A21B;
  --okay-soft: #FFF1D6;
  --attention: #F04E3E;
  --blue: #2F7BFF;
  --blue-soft: #E3EDFF;
  --r-card: 28px;
  --r-inner: 18px;
  --r-chip: 14px;
  --shadow: 0 1px 2px rgba(17,17,20,.04), 0 12px 32px -12px rgba(17,17,20,.12);
  --shadow-lg: 0 2px 4px rgba(17,17,20,.04), 0 30px 60px -20px rgba(17,17,20,.22);
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.lede { font-size: 1.15rem; color: var(--secondary); max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,90,54,.7); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--text); }
.link-arrow::after { content: ' \2192'; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* Header, liquid-glass style */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.glass { background: rgba(255,255,255,.62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(17,17,20,.04), 0 10px 30px -18px rgba(17,17,20,.25), inset 0 1px 0 rgba(255,255,255,.7); }
.nav-inner { width: min(var(--wrap), 100% - 24px); margin-inline: auto; border-radius: 999px; padding: 8px 10px 8px 16px; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; gap: .2rem; margin-left: auto; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--secondary); font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--raised); color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { width: min(var(--wrap), 100% - 24px); margin: 8px auto 0; border-radius: 22px; padding: 8px; display: flex; flex-direction: column; }
.mobile-nav a { padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 600; }
.mobile-nav a:hover { background: var(--raised); }
@media (max-width: 860px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-link h3 { margin: 0; }
.card-link p { color: var(--secondary); margin: 0; font-size: .95rem; flex: 1; }
.card-meta { font-size: .8rem; color: var(--tertiary); font-weight: 600; }
.card .eyebrow { margin-bottom: .2rem; font-size: .7rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-title-row h2 { margin: 0; }

/* Hero */
.hero { padding: 48px 0 24px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--secondary); font-size: .9rem; font-weight: 600; }
.hero-proof li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: .5rem; }
.hero-shots { position: relative; height: 620px; }
.phone { position: absolute; border-radius: 40px; box-shadow: var(--shadow-lg); overflow: hidden; background: var(--bg); }
.phone img { display: block; }
.phone-front { right: 8%; top: 20px; z-index: 2; }
.phone-back { left: 4%; top: 80px; z-index: 1; opacity: .95; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shots { height: auto; display: flex; justify-content: center; gap: 12px; }
  .phone { position: static; transform: none; width: 46%; }
  .phone img { width: 100%; height: auto; }
}

/* Strip */
.strip { padding: 12px 0 40px; }
.strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.strip-inner div { background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.strip-inner strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.strip-inner span { color: var(--secondary); font-size: .85rem; }
@media (max-width: 800px) { .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feature */
.feature { padding: 40px 0; }
.feature-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 48px; box-shadow: var(--shadow); }
.feature-copy p { color: var(--secondary); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.checks li { padding-left: 1.8rem; position: relative; color: var(--secondary); }
.checks li strong { color: var(--text); }
.checks li::before { content: ''; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FB463' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot picture { border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .feature-inner { grid-template-columns: 1fr; padding: 28px; } }

/* Screens */
.screens { padding: 40px 0; }
.screens-row { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.screens-row figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.screens-row picture { display: block; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.screens-row figcaption { font-size: .85rem; color: var(--secondary); margin-top: .6rem; font-weight: 600; }

/* How */
.how { padding: 40px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.steps h3 { margin: .8rem 0 .4rem; }
.steps p { color: var(--secondary); font-size: .95rem; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.guides, .usecases, .more, .related { padding: 40px 0; }

/* FAQ */
.faq { padding: 40px 0; }
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
.faq-head p { color: var(--secondary); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border-radius: var(--r-inner); box-shadow: var(--shadow); padding: 4px 22px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--tertiary); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-body { padding: 0 0 18px; color: var(--secondary); }
.faq-body p { margin-bottom: .6rem; }
@media (max-width: 800px) { .faq-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* CTA */
.cta { padding: 40px 0; }
.cta-inner { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { color: rgba(255,255,255,.7); margin: 0; max-width: 48ch; }
.cta-actions { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.cta-note { font-size: .85rem; color: rgba(255,255,255,.6); }
.cta-compact .cta-inner { padding: 32px; }
.cta-compact h2 { font-size: 1.4rem; }
@media (max-width: 600px) { .cta-inner { padding: 28px; } }

/* Section pages */
.section-head { padding: 48px 0 16px; }
.section-list { padding: 16px 0 40px; }
.group-title { font-size: 1.3rem; margin: 2rem 0 1rem; }
.group-title:first-child { margin-top: 0; }

/* Post */
.post { padding: 32px 0 8px; }
.post-wrap.narrow { max-width: 760px; }
.crumbs { font-size: .85rem; color: var(--tertiary); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs a { color: var(--secondary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--tertiary); }
.post-head { max-width: 760px; margin-bottom: 2rem; }
.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.post-meta { color: var(--tertiary); font-size: .85rem; font-weight: 600; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 3rem; align-items: start; }
.post-aside { position: sticky; top: 90px; }
.aside-card { text-align: center; }
.aside-card picture { display: block; margin: 0 auto 1rem; border-radius: 24px; overflow: hidden; width: 180px; box-shadow: var(--shadow); }
.aside-card p { color: var(--secondary); font-size: .9rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } .post-aside { position: static; } }

.prose { max-width: 720px; font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: #2B2B33; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent); font-weight: 600; }
.prose blockquote { margin: 1.5rem 0; padding: 16px 20px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--r-inner) var(--r-inner) 0; color: var(--secondary); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5rem 0; background: var(--surface); border-radius: var(--r-inner); overflow: hidden; box-shadow: var(--shadow); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--raised); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.prose tr:last-child td { border-bottom: 0; }
.prose img { border-radius: var(--r-inner); box-shadow: var(--shadow); margin: 1.5rem auto; max-width: 320px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose code { background: var(--raised); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose strong { color: var(--text); }
.prose .callout, .prose .note { background: var(--accent-soft); border-radius: var(--r-inner); padding: 16px 20px; margin: 1.5rem 0; }
.prose .callout p:last-child { margin: 0; }

/* Footer */
.site-footer { padding: 48px 0 32px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(6, minmax(0, 1fr)); gap: 2rem; background: var(--surface); border-radius: var(--r-card); padding: 40px; box-shadow: var(--shadow); }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tertiary); margin-bottom: .8rem; }
.footer-grid a { display: block; text-decoration: none; color: var(--secondary); font-size: .92rem; margin-bottom: .5rem; font-weight: 600; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--secondary); font-size: .92rem; max-width: 32ch; }
.footer-brand .brand { margin-bottom: .6rem; }
.footer-brand .btn { display: inline-flex; color: var(--on-ink); }
.footer-note { color: var(--tertiary); font-size: .8rem; margin: 1.5rem 0 .4rem; max-width: 80ch; }
.footer-copy { color: var(--tertiary); font-size: .8rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px; } .btn { white-space: normal; text-align: left; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card-link { transition: none; } }
