/* Calfit landing — cozy, warm, award-grade. Brand tokens from design_mockups. */

@font-face {
  font-family: 'Bagel Fat One';
  src: url('assets/fonts/BagelFatOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #2B1810;
  --ink-soft: #6B4A38;
  --ink-faint: #8A6A54;
  --bg: #FFF8EE;
  --peach: #FBEDE1;
  --peach-deep: #F6DFC8;
  --card: #FFFFFF;
  --accent: #E85A3C;
  --accent-deep: #C8431F;
  --sage: #8FA876;
  --sage-deep: #6E8A57;
  --gold: #F5C34B;
  --water: #7FCBE3;
  --disp: 'Bagel Fat One', 'Arial Rounded MT Bold', cursive;
  --ui: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  --radius: 28px;
  --shadow-soft: 0 2px 8px rgba(43, 24, 16, .05), 0 12px 32px rgba(43, 24, 16, .07);
  --shadow-lift: 0 4px 12px rgba(43, 24, 16, .08), 0 24px 56px rgba(43, 24, 16, .14);
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

h1, h2, h3, .disp { font-family: var(--disp); font-weight: 400; line-height: 1.12; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
.accent { color: var(--accent); }
.sage-txt { color: var(--sage-deep); }

.kicker {
  font-family: var(--ui);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.06rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255, 248, 238, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(43, 24, 16, .07);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 2px 6px rgba(43,24,16,.15); }
.logo span { font-family: var(--disp); font-size: 1.35rem; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Buttons & store badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ui); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(232, 90, 60, .35); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 90, 60, .42); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid rgba(43, 24, 16, .18); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(43, 24, 16, .25);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 24, 16, .3); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: .62rem; font-weight: 500; opacity: .85; letter-spacing: .04em; line-height: 1.3; }
.store-badge strong { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 124px 0 40px;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(232,90,60,.14), transparent 60%),
    radial-gradient(700px 420px at -10% 26%, rgba(143,168,118,.16), transparent 60%),
    linear-gradient(180deg, var(--peach) 0%, var(--bg) 88%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid rgba(232, 90, 60, .3);
  color: var(--accent-deep); font-weight: 700; font-size: .86rem;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.14rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); list-style: none; }
.hero-ticks li::before { content: '✓'; color: var(--sage-deep); font-weight: 800; margin-right: 7px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  position: relative;
  background: linear-gradient(160deg, var(--accent) 0%, #F07B4A 100%);
  border-radius: 44px;
  padding: 46px 44px 0;
  width: min(430px, 100%);
  box-shadow: var(--shadow-lift);
  overflow: visible;
}
.hero-card-title {
  font-family: var(--disp); color: #fff; text-align: center;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.1;
  margin-bottom: 26px; text-shadow: 0 2px 0 rgba(43, 24, 16, .12);
}
.hero-card-title em { font-style: normal; color: #FFE3B8; }
.hero-phone { margin: 0 auto -4px; width: min(268px, 76%); }

.phone {
  border-radius: 42px; border: 9px solid var(--ink);
  background: var(--ink); overflow: hidden;
  aspect-ratio: 390 / 800;
  box-shadow: 0 30px 60px rgba(43, 24, 16, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.float-chip {
  position: absolute; background: #fff; border-radius: 16px;
  padding: 10px 16px; font-weight: 700; font-size: .86rem;
  box-shadow: var(--shadow-lift); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  animation: floaty 5.2s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 600; font-size: .7rem; color: var(--ink-faint); line-height: 1.2; }
.chip-streak { top: 36%; left: -8%; animation-delay: .4s; }
.chip-scan { top: 42%; right: -10%; animation-delay: 1.6s; }
.chip-trend { bottom: 12%; left: -11%; animation-delay: 2.8s; }
.chip-pip { top: -4%; right: 4%; animation-delay: 2s; padding: 6px; border-radius: 18px; }
.chip-pip img { width: 52px; height: 52px; border-radius: 13px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1.5px solid rgba(43, 24, 16, .1);
  background: var(--bg);
  overflow: hidden; padding: 18px 0; white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 44px; animation: marquee 36s linear infinite; will-change: transform; }
.marquee span { font-family: var(--disp); font-size: 1.18rem; color: var(--ink-soft); }
.marquee em { font-style: normal; color: var(--accent); margin-right: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.tinted { background: var(--peach); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-soft); position: relative;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.step-num {
  font-family: var(--disp); font-size: 1.05rem; color: #fff;
  background: var(--accent); width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(232,90,60,.4);
}
.step p { color: var(--ink-soft); font-size: .98rem; }
.step .store-shot { width: 86%; margin: 14px auto 0; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento-card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-soft); overflow: hidden; position: relative;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column; gap: 10px;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.bento-card p { color: var(--ink-soft); font-size: .95rem; }
.bento-icon { font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.b-span3 { grid-column: span 3; }
.b-span2 { grid-column: span 2; }
.bento-shot { margin: 18px -30px -30px; }
.bento-shot img { width: 100%; height: 280px; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(43,24,16,.12); }
.bento-sage { background: linear-gradient(160deg, #EEF3E6, #DFE9D2); }
.bento-waterc { background: linear-gradient(160deg, #EAF6FB, #D9EFF8); }
.bento-goldc { background: linear-gradient(160deg, #FDF3D9, #FAE7B9); }

/* Screenshots gallery */
.gallery {
  display: flex; gap: 26px; overflow-x: auto; padding: 24px 24px 40px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: var(--wrap); margin: 0 auto;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 248px; min-width: 0; scroll-snap-align: center; text-align: center; }
.shot .phone { border-width: 7px; border-radius: 34px; aspect-ratio: 390 / 800; box-shadow: 0 18px 40px rgba(43,24,16,.16); transition: transform .3s; }
.shot:hover .phone { transform: translateY(-8px) rotate(-1deg); }
.shot figcaption { margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.store-shot {
  width: 100%; height: auto;
  border-radius: 26px; border: 1.5px solid rgba(43, 24, 16, .08);
  box-shadow: 0 14px 34px rgba(43, 24, 16, .13); transition: transform .3s;
}
.shot:hover .store-shot { transform: translateY(-8px) rotate(-1deg); }

/* Pip section */
.pip-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.pip-art { position: relative; }
.pip-art img.pip-main {
  width: min(380px, 100%); border-radius: 44px; box-shadow: var(--shadow-lift);
  transform: rotate(-2deg);
}
.pip-quote {
  position: absolute; right: -6%; bottom: 8%;
  background: #fff; border-radius: 20px 20px 20px 4px; padding: 14px 20px;
  font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-lift);
  max-width: 230px; animation: floaty 6s ease-in-out infinite;
}
.pip-points { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.pip-points li { display: flex; gap: 13px; color: var(--ink-soft); }
.pip-points .dot { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--peach-deep); display: grid; place-items: center; font-size: .95rem; }
.pip-points strong { color: var(--ink); }

/* Guides */
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card {
  background: var(--card); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-soft); text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, box-shadow .25s;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.guide-card .bento-icon { margin: 0; }
.guide-card h3 { font-family: var(--ui); font-weight: 800; font-size: 1.02rem; }
.guide-card p { color: var(--ink-soft); font-size: .88rem; flex: 1; }
.guide-card .more { color: var(--accent); font-weight: 700; font-size: .88rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-soft);
  overflow: hidden; border: 1.5px solid transparent; transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(232, 90, 60, .35); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--disp); font-size: 1.3rem; color: var(--accent);
  transition: transform .25s; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-body a { color: var(--accent); font-weight: 700; }

/* Final CTA */
.cta-card {
  background:
    radial-gradient(640px 300px at 88% -20%, rgba(255, 227, 184, .4), transparent 60%),
    linear-gradient(150deg, var(--accent) 0%, #E8703C 60%, #E8883C 100%);
  border-radius: 48px; padding: 72px 56px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  color: #fff; box-shadow: var(--shadow-lift); overflow: hidden; position: relative;
}
.cta-card h2 { color: #fff; margin-bottom: 14px; }
.cta-card p { opacity: .93; margin-bottom: 28px; max-width: 32em; }
.cta-card .store-badge { background: var(--ink); }
.cta-pip { display: flex; justify-content: center; }
.cta-pip img {
  width: min(250px, 80%); border-radius: 36px; transform: rotate(3deg);
  box-shadow: 0 24px 48px rgba(43, 24, 16, .35);
  animation: floaty 6s ease-in-out infinite;
}

/* Footer */
footer { background: var(--ink); color: #EFE3D9; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-grid .logo span { color: #fff; }
.foot-grid p { color: #C9B4A5; font-size: .92rem; margin-top: 14px; max-width: 26em; }
.foot-grid h4 { font-family: var(--ui); font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #C9B4A5; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid ul a { color: #EFE3D9; text-decoration: none; font-size: .95rem; }
.foot-grid ul a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #C9B4A5;
}

/* ---------- Guide article pages ---------- */
.article-hero { padding: 130px 0 44px; background: linear-gradient(180deg, var(--peach), var(--bg)); }
.crumbs { font-size: .88rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article-hero h1 { max-width: 17em; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.article-hero .lede { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); max-width: 38em; }
.article { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.post-hero-img { margin: 0 0 30px; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 32px rgba(43,24,16,.12); }
.post-hero-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-hero-img figcaption { font-family: var(--ui); font-size: .8rem; color: var(--ink-soft); padding: 8px 4px 0; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 44px 0 16px; }
.article h3 { font-family: var(--ui); font-weight: 800; font-size: 1.12rem; margin: 30px 0 10px; }
.article p, .article li { color: var(--ink-soft); }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.article strong { color: var(--ink); }
.article a { color: var(--accent); font-weight: 700; }
.article .callout {
  background: var(--peach); border-radius: 20px; padding: 20px 24px; margin: 24px 0;
  border-left: 5px solid var(--sage);
}
.article .callout p { margin: 0; }
.app-cta {
  background: linear-gradient(150deg, var(--accent), #E8783C);
  color: #fff; border-radius: 28px; padding: 34px 32px; margin: 40px 0;
  box-shadow: var(--shadow-lift);
}
.app-cta h3 { font-family: var(--disp); font-weight: 400; font-size: 1.45rem; margin: 0 0 8px; }
.app-cta p { color: rgba(255, 255, 255, .93); margin-bottom: 20px; }
.related { background: var(--peach); padding: 64px 0; }
.related .guides-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Reveal animations (hidden state only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .cta-pip img, .pip-quote { animation: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 118px; }
  .hero-sub, .hero h1 { max-width: 38em; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-span3, .b-span2 { grid-column: span 1; }
  .pip-grid { grid-template-columns: 1fr; gap: 44px; }
  .guides-grid, .related .guides-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 52px 36px; text-align: center; }
  .cta-card .store-badges { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 12px; right: 12px;
    background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift);
    padding: 22px; flex-direction: column; align-items: stretch; text-align: center;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .bento { grid-template-columns: 1fr; }
  .guides-grid, .related .guides-grid { grid-template-columns: 1fr; }
  .chip-trend { left: -2%; }
  .chip-streak { left: -2%; }
  .chip-scan { right: -2%; }
  .hero-card { padding: 34px 28px 0; }
  .store-badges { width: 100%; }
  .store-badge { flex: 1; justify-content: center; }
  .cta-card { padding: 44px 24px; border-radius: 36px; }
  .shot { flex-basis: 200px; }
}
