/* ============ TOKENS ============ */
:root{
  --coral-1:#FF8659;
  --coral-2:#EE4C22;
  --coral-3:#D63E17;
  --cream:#FDF1EA;
  --cream-2:#FBE7DA;
  --ink:#2A1D17;
  --ink-soft:#6B5A51;
  --paper:#FFFFFF;
  --yellow:#F6D36B;
  --yellow-ink:#8A5A00;
  --blue:#AFCBEA;
  --blue-ink:#1F3F63;
  --pink:#F3AEC0;
  --pink-ink:#7A2438;
  --green:#8FBF8A;

  --font-display:'Baloo 2', 'Inter', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;

  --radius-lg:28px;
  --radius-md:20px;
  --radius-sm:14px;

  --shadow-card: 0 1px 2px rgba(42,29,23,0.04), 0 12px 28px -14px rgba(42,29,23,0.18);
  --shadow-float: 0 20px 50px -18px rgba(150,60,20,0.35);

  --maxw:1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; max-width:100%; overflow-x:clip; }
.section-anchor, section[id]{ scroll-margin-top:86px; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  max-width:100%; overflow-x:clip;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--font-display); margin:0; font-weight:700; letter-spacing:-0.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
:focus-visible{ outline:3px solid var(--coral-2); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.grain-overlay{
  position:fixed; inset:0; pointer-events:none; z-index:2000; opacity:0.035; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family:var(--font-body);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.09em;
  text-transform:uppercase;
  color:var(--coral-3);
  margin:0 0 10px;
}

/* ============ NAV ============ */
.nav{
  position:sticky; top:0; z-index:500;
  background:rgba(253,241,234,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(42,29,23,0.06);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-brand{
  font-family:var(--font-display); font-weight:700; font-size:20px;
  display:flex; align-items:center; gap:9px; color:var(--ink);
}
.nav-links{ display:flex; gap:28px; }
.nav-links a{ font-size:14.5px; font-weight:600; color:var(--ink-soft); transition:color .15s; }
.nav-links a:hover{ color:var(--coral-3); }
.nav-cta{
  background:var(--ink); color:#fff; font-weight:700; font-size:14px;
  padding:10px 20px; border-radius:100px; transition:transform .15s, background .15s;
}
.nav-cta:hover{ background:var(--coral-2); transform:translateY(-1px); }

@media (max-width:820px){
  .nav-links{ display:none; }
}

@media (max-width:480px){
  .nav-inner{ padding:12px 20px; gap:10px; }
  .nav-brand{ font-size:18px; gap:7px; }
  .nav-brand .brand-mark svg{ width:27px; height:27px; }
  .nav-cta{ padding:9px 14px; font-size:13px; white-space:nowrap; }
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:15.5px; padding:14px 26px; border-radius:100px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  border:none;
}
.btn-primary{
  background:linear-gradient(135deg, var(--coral-1), var(--coral-2));
  color:#fff; box-shadow:var(--shadow-float);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 24px 50px -16px rgba(150,60,20,0.45); }
.btn-ghost{
  background:transparent; color:var(--ink); border:1.5px solid rgba(42,29,23,0.18);
}
.btn-ghost:hover{ border-color:var(--ink); background:rgba(42,29,23,0.04); }
.btn-large{ padding:17px 34px; font-size:17px; }

/* ---- Mobile App Store Badges ---- */
.btn-appstore, .btn-playstore {
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(42,29,23,0.15);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-appstore:hover, .btn-playstore:hover {
  background: var(--coral-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238,76,34,0.3);
}
.btn-app-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn-app-sub {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.btn-app-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.phone-frame.small {
  width: 220px;
  padding: 8px;
  border-radius: 30px;
}
.phone-frame.small .phone-notch {
  width: 70px;
  height: 16px;
  top: 8px;
  border-radius: 0 0 12px 12px;
}
.phone-frame.small img {
  border-radius: 22px;
}

/* ============ HERO ============ */
.hero{ position:relative; padding:64px 28px 40px; overflow:hidden; }
.hero-inner{
  max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:40px; align-items:center;
}
.hero-copy, .hero-visual{ min-width:0; }
.hero-copy h1{
  font-size:clamp(34px,4.6vw,58px); line-height:1.06; color:var(--ink);
}
.ink-underline{
  position:relative; white-space:nowrap;
  background:linear-gradient(transparent 62%, var(--yellow) 62%);
}
.hero-sub{
  font-size:18px; line-height:1.6; color:var(--ink-soft); max-width:480px;
  margin:20px 0 30px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
.hero-proof{ display:flex; align-items:center; gap:18px; }
.proof-item{ display:flex; flex-direction:column; }
.proof-item strong{ font-family:var(--font-display); font-size:19px; }
.proof-item span{ font-size:12.5px; color:var(--ink-soft); }
.proof-divider{ width:1px; height:30px; background:rgba(42,29,23,0.15); }

.hero-visual{ position:relative; display:flex; justify-content:center; min-height:560px; }
.phone-frame{
  width:270px; background:#181110; border-radius:40px; padding:12px;
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(0,0,0,0.06);
  position:relative;
}
.phone-frame img{ border-radius:28px; width:100%; aspect-ratio:9 / 20; object-fit:cover; display:block; }
.phone-notch{
  position:absolute; top:12px; left:50%; transform:translateX(-50%);
  width:90px; height:22px; background:#181110; border-radius:0 0 16px 16px; z-index:5;
}
@keyframes floatyRot{
  0%,100%{ transform:rotate(var(--r)) translateY(0); }
  50%{ transform:rotate(var(--r)) translateY(-12px); }
}

.sticky{
  width:168px; background:var(--paper); border-radius:16px;
  padding:14px 16px; box-shadow:var(--shadow-card);
  transform:rotate(var(--r));
  font-size:13px; font-weight:600; color:var(--ink);
}
.sticky p{ margin-top:8px; line-height:1.3; }
.sticky-emoji{ font-size:20px; }
.sticky-yellow{ background:var(--yellow); color:var(--yellow-ink); }
.sticky-blue{ background:var(--blue); color:var(--blue-ink); }
.sticky-pink{ background:var(--pink); color:var(--pink-ink); }

.hero-fade{
  position:absolute; left:0; right:0; bottom:0; height:120px; pointer-events:none;
  background:linear-gradient(to bottom, transparent, var(--cream));
}

@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-copy{ text-align:center; }
  .hero-sub{ margin-left:auto; margin-right:auto; }
  .hero-actions,.hero-proof{ justify-content:center; }
  .hero-visual{ min-height:460px; margin-top:20px; }
  .parallax-item, .blob{ display:none; }
}

@media (max-width:620px){
  .hero{ padding:48px 20px 32px; }
  .hero-copy h1{ font-size:32px; }
  .hero-copy h1, .hero-copy .eyebrow{ overflow-wrap:anywhere; }
  .ink-underline{ white-space:normal; }
  .hero-actions{ gap:10px; }
  .hero-actions .btn{ padding:13px 18px; font-size:14px; }
  .hero-proof{ gap:12px 8px; flex-wrap:wrap; }
  .hero-proof .proof-item{ flex:1 1 30%; min-width:96px; }
  .hero-proof .proof-divider{ display:none; }
  .proof-item strong{ font-size:16px; }
  .proof-item span{ font-size:11.5px; }
}

/* ============ SECTION HEAD ============ */
.section-head{ max-width:640px; margin:0 auto 46px; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); line-height:1.15; margin-bottom:14px; }
.section-sub{ font-size:16.5px; color:var(--ink-soft); line-height:1.6; }
.section-head.light h2{ color:#fff; }
.section-head.light .section-sub{ color:rgba(255,255,255,0.78); }
.section-head.light .eyebrow{ color:var(--yellow); }

/* ============ WHY CUEFINITY ============ */
.why-cuefinity{ padding:56px 28px 72px; }
.why-cuefinity-inner{ max-width:var(--maxw); margin:0 auto; }
.why-cuefinity .section-head{ margin-bottom:34px; }
.why-flow{
  max-width:760px; margin:0 auto 28px; padding:24px;
  background:var(--cream-2); border-radius:var(--radius-md); text-align:center;
}
.why-flow-inputs{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.why-flow-inputs span{
  background:var(--paper); border-radius:100px; padding:7px 12px;
  box-shadow:var(--shadow-card); font-size:13px; font-weight:700;
}
.why-flow-arrow{ display:block; color:var(--coral-3); font-family:var(--font-display); font-size:24px; line-height:1.1; margin:5px 0; }
.why-flow-center{
  display:inline-block; background:linear-gradient(135deg, var(--coral-1), var(--coral-2));
  color:#fff; border-radius:100px; padding:9px 22px; box-shadow:var(--shadow-float); font-size:16px;
}
.why-flow-outcome{ font-family:var(--font-display); font-size:18px; font-weight:700; }
.why-values{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.why-value-card{ padding:20px; background:var(--paper); border-radius:var(--radius-sm); box-shadow:var(--shadow-card); }
.why-value-card h3{ font-size:19px; margin-bottom:7px; }
.why-value-card p{ color:var(--ink-soft); font-size:14.5px; line-height:1.55; }

@media (max-width:620px){
  .why-cuefinity{ padding:48px 28px 60px; }
  .why-values{ grid-template-columns:1fr; }
}

/* ============ FEATURES ============ */
.features{ max-width:var(--maxw); margin:100px auto; padding:0 28px; }
.features .section-head{ margin-bottom:54px; }
.feature-category-tabs{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:0 0 42px; }
.feature-category-tabs button{
  background:var(--paper); border:1.5px solid rgba(42,29,23,0.14); border-radius:100px;
  color:var(--ink-soft); font:inherit; font-size:13px; font-weight:700; padding:8px 14px;
  transition:transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.feature-category-tabs button:hover{ border-color:var(--coral-2); color:var(--ink); transform:translateY(-1px); }
.feature-category-tabs button[aria-selected="true"]{ background:var(--coral-2); border-color:var(--coral-2); color:#fff; }
.feature-category-intro{ max-width:680px; margin:0 auto 40px; text-align:center; }
.feature-category-intro h3{ font-size:clamp(24px,3vw,32px); line-height:1.15; margin-bottom:8px; }
.feature-category-intro > p:last-child{ color:var(--ink-soft); font-size:15px; line-height:1.55; }
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
  transition:opacity .2s ease, transform .2s ease;
}
.feature-grid.is-switching{ opacity:0; transform:translateY(6px); }
#featureCards[data-active-category] .feature-card{ display:none !important; }
#featureCards[data-active-category="capture"] .feature-card[data-feature-category="capture"],
#featureCards[data-active-category="organize"] .feature-card[data-feature-category="organize"],
#featureCards[data-active-category="get-things-done"] .feature-card[data-feature-category="get-things-done"],
#featureCards[data-active-category="work-smarter"] .feature-card[data-feature-category="work-smarter"],
#featureCards[data-active-category="keep-it-yours"] .feature-card[data-feature-category="keep-it-yours"]{ display:flex !important; }
.card-large{ grid-column:span 2; }
.feature-card{
  background:var(--paper); border-radius:var(--radius-md); overflow:hidden;
  box-shadow:var(--shadow-card); transition:transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
}
.feature-card:hover{ transform:translateY(-4px); box-shadow:0 20px 40px -18px rgba(42,29,23,0.25); }
.feature-media{
  background:var(--cream-2); display:flex; justify-content:center; padding-top:22px; overflow:hidden;
  height:220px;
}
.card-large .feature-media{ height:260px; }
.feature-media img{
  width:150px; border-radius:16px 16px 0 0; box-shadow:0 12px 24px -12px rgba(42,29,23,0.35);
  object-fit:cover; object-position:top;
}
.card-large .feature-media img{ width:180px; }
.feature-copy{ padding:20px 22px 24px; }
.feature-tag{
  display:inline-block; font-size:11.5px; font-weight:700; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--coral-3); background:var(--cream-2);
  padding:4px 10px; border-radius:100px; margin-bottom:10px;
}
.feature-copy h3{ font-size:19px; margin-bottom:8px; }
.feature-copy p{ font-size:14.5px; line-height:1.55; color:var(--ink-soft); }

@media (max-width:900px){
  .feature-grid{ grid-template-columns:1fr 1fr; }
  .card-large{ grid-column:span 2; }
}
@media (max-width:620px){
  .feature-category-tabs{
    flex-wrap:nowrap; justify-content:flex-start; margin-bottom:34px; overflow-x:auto;
    padding:0 2px 8px; scrollbar-width:none;
  }
  .feature-category-tabs::-webkit-scrollbar{ display:none; }
  .feature-category-tabs button{ flex:0 0 auto; }
  .feature-grid{ grid-template-columns:1fr; }
  .card-large{ grid-column:span 1; }
}

/* ============ ASK CUEFINITY AI ============ */
.ask-ai-showcase{ padding:96px 28px; background:linear-gradient(135deg, var(--cream-2), #fff7f2); overflow:hidden; }
.ask-ai-inner{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:0.8fr 1fr; gap:82px; align-items:center; }
.ask-ai-visual{ min-height:510px; display:flex; justify-content:center; align-items:center; position:relative; }
.ask-ai-glow{ position:absolute; width:360px; height:360px; border-radius:50%; background:rgba(255,134,89,0.22); filter:blur(28px); }
.ask-ai-visual .phone-frame{ width:260px; z-index:1; }
.ask-ai-copy{ max-width:570px; }
.ask-ai-copy h2{ font-size:clamp(30px,3.6vw,43px); line-height:1.12; margin-bottom:16px; }
.ask-ai-description{ color:var(--ink-soft); font-size:16.5px; line-height:1.65; }
.ask-ai-supporting{ color:var(--ink); font-size:14.5px; font-weight:600; line-height:1.55; margin-top:12px; }
.ask-ai-questions{ margin:28px 0 30px; }
.ask-ai-questions > span{ color:var(--coral-3); font-size:11.5px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; }
.ask-ai-topic-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 12px; }
.ask-ai-topic-tabs button{
  background:var(--paper); border:1.5px solid rgba(42,29,23,0.14); border-radius:100px;
  color:var(--ink-soft); font:inherit; font-size:12.5px; font-weight:700; padding:7px 11px;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.ask-ai-topic-tabs button[aria-selected="true"]{ background:var(--coral-2); border-color:var(--coral-2); color:#fff; }
.ask-ai-question-list{ display:grid; gap:8px; }
.ask-ai-question-list button{
  background:var(--paper); border:1px solid rgba(42,29,23,0.1); border-radius:var(--radius-sm);
  color:var(--ink); font:inherit; font-size:14px; font-weight:600; padding:11px 13px; text-align:left;
  transition:transform .15s ease, box-shadow .15s ease;
}
.ask-ai-question-list button:hover{ box-shadow:var(--shadow-card); transform:translateX(2px); }
.ask-ai-benefits{ display:grid; gap:16px; }
.ask-ai-benefits > div{ padding-left:18px; border-left:3px solid var(--coral-1); }
.ask-ai-benefits h3{ font-size:18px; margin-bottom:4px; }
.ask-ai-benefits p{ color:var(--ink-soft); font-size:14.5px; line-height:1.55; }
.ask-ai-note{ color:var(--ink-soft); font-size:13px; font-weight:600; margin-top:16px; }

@media (max-width:900px){
  .ask-ai-inner{ grid-template-columns:1fr; gap:44px; }
  .ask-ai-copy{ order:1; max-width:640px; margin:0 auto; }
  .ask-ai-visual{ order:2; min-height:440px; }
}

/* ============ TEMPLATES ============ */
.templates-showcase{ max-width:var(--maxw); margin:104px auto; padding:0 28px; }
.templates-main{ display:grid; grid-template-columns:1fr 0.8fr; gap:82px; align-items:center; }
.templates-copy{ max-width:590px; }
.templates-copy h2{ font-size:clamp(30px,3.6vw,43px); line-height:1.12; margin-bottom:16px; }
.templates-description{ color:var(--ink-soft); font-size:16.5px; line-height:1.65; }
.templates-supporting{ font-size:14.5px; font-weight:600; line-height:1.55; margin-top:12px; }
.templates-available{ margin-top:28px; }
.templates-available .eyebrow{ margin-bottom:12px; }
.template-chip-list{
  display:flex; gap:8px; overflow-x:auto; padding:2px 2px 10px;
  scrollbar-width:thin; scroll-snap-type:x proximity;
}
.template-chip{ flex:0 0 auto; scroll-snap-align:start; }
.template-choice{ display:flex; flex-wrap:wrap; gap:7px; color:var(--ink-soft); font-size:13.5px; line-height:1.55; margin:10px 0 0; }
.template-choice strong{ color:var(--ink); }
.templates-visual{ min-height:560px; display:flex; justify-content:center; align-items:center; position:relative; }
.templates-glow{ position:absolute; width:370px; height:370px; border-radius:50%; background:rgba(246,211,107,0.35); filter:blur(30px); }
.templates-visual .phone-frame{ width:270px; z-index:1; }
.templates-visual img{ transition:opacity .2s ease; }
.templates-visual img.is-changing{ opacity:0; }
.template-chip{
  background:var(--paper); border:1.5px solid rgba(42,29,23,0.14); border-radius:100px; color:var(--ink-soft);
  font:inherit; font-size:13px; font-weight:700; padding:8px 12px; transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.template-chip:hover, .template-chip.is-highlighted{ background:var(--cream-2); border-color:var(--coral-2); color:var(--ink); }

@media (max-width:900px){
  .templates-main{ grid-template-columns:1fr; gap:44px; }
  .templates-visual{ min-height:460px; }
}
@media (max-width:620px){
  .templates-showcase{ margin:76px auto; }
}

/* ============ WALKTHROUGH / DEMO ============ */
.walkthrough{
  background:linear-gradient(180deg, #2A1D17 0%, #241811 100%);
  padding:100px 28px 110px; margin-top:20px; position:relative;
}
.demo-shell{ max-width:var(--maxw); margin:0 auto; }

.demo-tabs{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:46px;
}
.demo-tab{
  background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.75);
  border:1px solid rgba(255,255,255,0.12); padding:10px 18px; border-radius:100px;
  font-weight:600; font-size:14px; transition:all .15s;
}
.demo-tab:hover{ background:rgba(255,255,255,0.12); color:#fff; }
.demo-tab.active{
  background:linear-gradient(135deg, var(--coral-1), var(--coral-2)); color:#fff; border-color:transparent;
}

.demo-stage{
  display:grid; grid-template-columns:0.8fr 1fr; gap:60px; align-items:center;
}
.demo-phone{ display:flex; justify-content:center; }
.demo-phone .phone-frame{ width:250px; }
.demo-phone img{ transition:opacity .25s ease; }

.demo-step-track{ display:flex; gap:6px; margin-bottom:20px; }
.demo-step-dot{
  height:4px; flex:1; background:rgba(255,255,255,0.15); border-radius:4px; overflow:hidden; position:relative;
}
.demo-step-dot .fill{
  position:absolute; inset:0; background:var(--coral-1); width:0%; transition:width .2s linear;
}
.demo-step-dot.done .fill{ width:100%; }

.demo-info h3{ color:#fff; font-size:26px; margin-bottom:12px; }
.demo-info p{ color:rgba(255,255,255,0.75); font-size:15.5px; line-height:1.6; }
.demo-step-count{ color:var(--coral-1) !important; font-size:12px !important; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px; }
.demo-controls{ display:flex; gap:10px; align-items:center; margin:26px 0 0; }
.demo-btn{
  background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.16);
  width:44px; height:44px; border-radius:50%; font-size:16px; transition:background .15s;
}
.demo-btn:hover{ background:rgba(255,255,255,0.18); }
.demo-btn-text{ width:auto; border-radius:100px; padding:0 18px; font-weight:700; font-size:14px; }

@media (max-width:900px){
  .demo-stage{ grid-template-columns:1fr; }
  .demo-phone{ order:1; }
  .demo-info{ order:2; text-align:left; }
}
@media (max-width:620px){
  .demo-tabs{ flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; padding:0 2px 8px; scrollbar-width:none; }
  .demo-tabs::-webkit-scrollbar{ display:none; }
  .demo-tab{ flex:0 0 auto; }
}

/* ============ PRIVACY, SECURITY & OFFLINE ============ */
.trust-section{ padding:82px 28px; background:var(--cream-2); }
.trust-inner{ max-width:var(--maxw); margin:0 auto; }
.trust-section .section-head{ margin-bottom:34px; }
.trust-points{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.trust-card{ background:rgba(255,255,255,0.7); border:1px solid rgba(42,29,23,0.08); border-radius:var(--radius-sm); padding:20px; }
.trust-icon{ display:grid; place-items:center; width:36px; height:36px; background:var(--paper); border-radius:12px; font-size:18px; margin-bottom:14px; box-shadow:var(--shadow-card); }
.trust-card h3{ font-size:18px; margin-bottom:7px; }
.trust-card p{ color:var(--ink-soft); font-size:14px; line-height:1.55; }

@media (max-width:900px){
  .trust-points{ grid-template-columns:1fr 1fr; }
}
@media (max-width:620px){
  .trust-section{ padding:64px 28px; }
  .trust-points{ grid-template-columns:1fr; }
}

/* ============ GALLERY ============ */
.gallery{ max-width:var(--maxw); margin:110px auto; padding:0 28px; }
.gallery-browser{ max-width:820px; margin:0 auto; outline:none; }
.gallery-stage{ display:grid; grid-template-columns:0.8fr 1fr; align-items:center; gap:64px; }
.gallery-main-screen{ appearance:none; background:transparent; border:none; cursor:zoom-in; display:flex; justify-content:center; padding:0; }
.gallery-main-screen .phone-frame{ width:275px; transition:transform .2s ease, box-shadow .2s ease; }
.gallery-main-screen:hover .phone-frame{ transform:translateY(-4px); box-shadow:0 24px 50px -14px rgba(238,76,34,0.4); }
.gallery-main-screen img{ transition:opacity .2s ease; }
.gallery-main-screen img.is-changing{ opacity:0; }
.gallery-count{ color:var(--coral-3); font-size:12px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px; }
.gallery-context h3{ font-size:clamp(28px,3.4vw,38px); line-height:1.15; margin-bottom:10px; }
.gallery-context > p:not(.gallery-count){ color:var(--ink-soft); font-size:16px; line-height:1.6; }
.gallery-controls{ display:flex; gap:10px; margin-top:24px; }
.gallery-control{ background:var(--paper); border:1.5px solid rgba(42,29,23,0.14); border-radius:100px; color:var(--ink); font:inherit; font-size:14px; font-weight:700; padding:11px 16px; transition:background .15s ease, border-color .15s ease; }
.gallery-control:hover{ background:var(--cream-2); border-color:var(--coral-2); }
.gallery-thumbnails{ display:flex; gap:10px; overflow-x:auto; padding:30px 2px 6px; scrollbar-width:none; }
.gallery-thumbnails::-webkit-scrollbar{ display:none; }
.gallery-thumbnail{ flex:0 0 auto; background:var(--paper); border:2px solid transparent; border-radius:12px; cursor:pointer; overflow:hidden; padding:3px; transition:border-color .15s ease, transform .15s ease; }
.gallery-thumbnail[aria-selected="true"]{ border-color:var(--coral-2); transform:translateY(-3px); }
.gallery-thumbnail img{ border-radius:8px; display:block; height:84px; object-fit:cover; object-position:top; width:48px; }

@media (max-width:700px){
  .gallery-stage{ grid-template-columns:1fr; gap:26px; }
  .gallery-main-screen .phone-frame{ width:min(275px, 76vw); }
  .gallery-context{ text-align:center; }
  .gallery-controls{ justify-content:center; }
  .gallery-thumbnails{ padding-top:24px; }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(18, 12, 10, 0.88); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox-modal.active { opacity: 1; pointer-events: auto; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lightbox-close:hover { background: var(--coral-2); }
.lightbox-content { text-align: center; max-width: 90vw; }
.lightbox-phone {
  width: 310px; margin: 0 auto; background: #181110; border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); position: relative;
}
.lightbox-phone img { border-radius: 32px; width: 100%; max-height: 70vh; object-fit: cover; object-position: top; }
.lightbox-caption { color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-top: 18px; }

/* ============ FAQ ============ */
.faq{ max-width:760px; margin:110px auto; padding:0 28px; }
.faq-list{ border-top:1px solid rgba(42,29,23,0.13); }
.faq-item{ border-bottom:1px solid rgba(42,29,23,0.13); }
.faq-question{ align-items:center; background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; font:inherit; font-size:16px; font-weight:700; justify-content:space-between; padding:20px 0; text-align:left; width:100%; }
.faq-icon{ color:var(--coral-2); font-size:24px; font-weight:400; line-height:1; margin-left:20px; }
.faq-answer{ padding:0 46px 22px 0; }
.faq-answer p{ color:var(--ink-soft); font-size:14.5px; line-height:1.65; }

/* ============ CTA ============ */
.cta{
  background:linear-gradient(135deg, var(--coral-1), var(--coral-2) 60%, var(--coral-3));
  border-radius:40px; max-width:var(--maxw); margin:0 auto 100px; padding:80px 40px;
  text-align:center;
}
.cta-eyebrow{ color:var(--yellow); font-size:12px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:10px; }
.cta-inner h2{ color:#fff; font-size:clamp(26px,3.6vw,40px); margin-bottom:10px; }
.cta-description{ color:rgba(255,255,255,0.85); font-size:16px; margin:0 auto; max-width:540px; }
.cta-actions{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:26px; }
.cta .btn-primary{ background:#fff; color:var(--coral-3); box-shadow:0 16px 34px -12px rgba(0,0,0,0.3); }
.cta .btn-primary:hover{ background:var(--ink); color:#fff; }
.cta-secondary{ border:1.5px solid rgba(255,255,255,0.5); color:#fff; }
.cta-secondary:hover{ background:rgba(255,255,255,0.14); border-color:#fff; }
.cta-platform{ color:rgba(255,255,255,0.75); font-size:13px; font-weight:600; margin-top:20px; }

@media (max-width:700px){
  .cta{ border-radius:26px; padding:56px 24px; margin-left:16px; margin-right:16px; }
  .cta-actions{ flex-direction:column; }
  .cta-actions .btn{ width:100%; }
}

/* ============ FOOTER ============ */
.footer{ border-top:1px solid rgba(42,29,23,0.08); padding:44px 28px 60px; }
.footer-inner{ max-width:var(--maxw); margin:0 auto; text-align:center; }
.footer-brand{
  font-family:var(--font-display); font-weight:700; font-size:18px;
  display:inline-flex; align-items:center; gap:8px; margin-bottom:10px;
}
.footer-copy{ font-size:14px; color:var(--ink-soft); margin-bottom:6px; }
.footer-links{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px 18px; margin:16px 0 10px; }
.footer-links a{ color:var(--ink-soft); font-size:13.5px; text-decoration:none; }
.footer-links a:hover{ color:var(--coral-2); }
.footer-legal{ font-size:12.5px; color:rgba(42,29,23,0.45); }

/* ===================================================================
   EXTRA — scroll progress, cursor glow, reveal choreography,
   3D tilt, parallax layers, shine sweep, animated gradients
   =================================================================== */

/* ---- Scroll progress bar ---- */
.scroll-progress{
  position:fixed; top:0; left:0; width:100%; height:3px; z-index:900;
  background:transparent; pointer-events:none;
}
.scroll-progress span{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg, var(--coral-1), var(--coral-3));
  transition:width .08s linear;
}

/* ---- Ambient cursor glow (desktop only, subtle) ---- */
.cursor-glow{
  position:fixed; top:0; left:0; width:520px; height:520px; border-radius:50%;
  pointer-events:none; z-index:1;
  background:radial-gradient(circle, rgba(255,134,89,0.16), transparent 70%);
  transform:translate(-50%,-50%);
  opacity:0; transition:opacity .4s ease;
  will-change:transform;
}
.cursor-glow.active{ opacity:1; }
@media (max-width:820px){ .cursor-glow{ display:none; } }

/* ---- Back to top ---- */
.back-to-top{
  position:fixed; right:24px; bottom:24px; z-index:400;
  width:50px; height:50px; border-radius:50%; border:none;
  background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px -10px rgba(42,29,23,0.45);
  opacity:0; transform:translateY(16px) scale(0.9); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, background .2s ease;
}
.back-to-top.visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.back-to-top:hover{ background:var(--coral-2); transform:translateY(-3px) scale(1.04); }

/* ---- Reveal-on-scroll ---- */
.reveal{
  opacity:0; transform:translateY(34px);
  transition:opacity .8s cubic-bezier(.16,.8,.24,1), transform .8s cubic-bezier(.16,.8,.24,1);
  transition-delay:var(--reveal-delay, 0ms);
  will-change:transform, opacity;
}
.reveal.visible{ opacity:1; transform:translateY(0); }

html.no-motion .reveal{ opacity:1; transform:none; transition:none; }
html.no-motion .tilt-target{ transition:none !important; }

/* ---- 3D tilt targets ---- */
.tilt-target{
  transition:transform .18s cubic-bezier(.22,1,.36,1);
  transform-style:preserve-3d;
  will-change:transform;
}

/* Shine sweep inside phone frames on tilt targets */
.phone-shine{
  position:absolute; inset:0; border-radius:28px; pointer-events:none;
  background:linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  background-size:220% 220%;
  background-position:120% 0%;
  opacity:0; transition:opacity .25s ease;
}
.tilt-target:hover .phone-shine{ opacity:1; animation:shineSweep 1.1s ease forwards; }
@keyframes shineSweep{
  from{ background-position:130% -20%; }
  to{ background-position:-30% 120%; }
}

/* ---- Hero phone: float wrapper (JS controls rotateX/rotateY on .hero-phone itself) ---- */
.hero-phone-float{
  animation:floatY 6s ease-in-out infinite;
}
@keyframes floatY{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}
.hero-phone{ transform:rotate(-3deg); }

/* ---- Parallax wrapper for sticky notes ---- */
.parallax-item{ position:absolute; will-change:transform; }
.parallax-item .sticky{
  position:static; /* positioning now lives on the wrapper; card keeps its own bob+rotate animation */
  animation:floatyRot 7s ease-in-out infinite;
}
.wrap-1{ top:6%; left:0%; }
.wrap-2{ bottom:20%; left:-4%; }
.wrap-3{ bottom:2%; right:-2%; }
.wrap-1 .sticky{ animation-duration:7s; }
.wrap-2 .sticky{ animation-duration:8s; animation-delay:1.1s; }
.wrap-3 .sticky{ animation-duration:6.5s; animation-delay:.6s; }

/* ---- Decorative parallax blobs ---- */
.blob{
  position:absolute; border-radius:50%; filter:blur(50px); pointer-events:none; z-index:-1;
  will-change:transform;
}
.blob-1{
  width:340px; height:340px; top:-10%; right:-6%;
  background:radial-gradient(circle, rgba(255,134,89,0.35), transparent 70%);
}
.blob-2{
  width:260px; height:260px; bottom:-6%; left:-8%;
  background:radial-gradient(circle, rgba(175,203,234,0.4), transparent 70%);
}

/* ---- Feature card tilt polish ---- */
.feature-card.tilt-target:hover{ box-shadow:0 26px 50px -16px rgba(42,29,23,0.3); }

/* ---- Animated CTA gradient ---- */
.cta{
  background-size:220% 220%;
  animation:ctaShift 9s ease-in-out infinite;
}
@keyframes ctaShift{
  0%,100%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
}

/* ---- Gallery item micro-interaction ---- */
.gallery-item{ transition:transform .25s ease, box-shadow .25s ease; }
.gallery-item:hover{ transform:translateY(-6px) scale(1.02); box-shadow:0 20px 40px -16px rgba(42,29,23,0.3); }

/* ---- Demo phone tilt container needs perspective ---- */
.demo-phone, .hero-visual, .cs-media{ perspective:1200px; }

@media (prefers-reduced-motion: reduce){
  .hero-phone-float, .cta, .phone-shine, .back-to-top{ animation:none !important; }
}
