/* ══════════════════════════════════════════════════════════════════
   DENLOG — Redesign v2 · Evernote-style: Clean, Light, Premium
   ══════════════════════════════════════════════════════════════════ */

/* ── Variables & Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --coral:      #E8574A;
  --coral-dk:   #c94338;
  --coral-lt:   #fef2f1;

  /* Backgrounds */
  --bg:         #ffffff;
  --bg-soft:    #f7f8fa;
  --bg-warm:    #fafaf8;

  /* Text */
  --text-1:     #111827;
  --text-2:     #374151;
  --text-3:     #6B7280;
  --text-4:     #9CA3AF;

  /* Borders */
  --border:     #E5E7EB;
  --border-dk:  #D1D5DB;

  /* Typography */
  --font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ko:    'Noto Sans KR', 'Plus Jakarta Sans', sans-serif;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --s-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --s-lg:   0 8px 40px rgba(0,0,0,0.10);
  --s-xl:   0 20px 60px rgba(0,0,0,0.12);

  /* Transitions */
  --t: 0.22s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-ko { font-family: var(--font-ko); }

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── Headings ────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Eyebrow ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.nav-wrap.shadowed { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Real brand logo image */
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.logo-d {
  width: 32px; height: 32px;
  background: var(--coral);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text-1); }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Buttons */
.btn-lang, .btn-lang-footer {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t);
  font-family: inherit;
}
.btn-lang:hover, .btn-lang-footer:hover { border-color: var(--coral); color: var(--coral); }

.btn-nav-ghost {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 7px 16px;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.btn-nav-ghost:hover { background: var(--bg-soft); }

.btn-nav-fill {
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  background: var(--text-1);
  padding: 8px 20px;
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.btn-nav-fill:hover { background: var(--coral); transform: translateY(-1px); }

.btn-primary-lg {
  display: inline-block;
  background: var(--text-1);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.btn-primary-lg:hover { background: var(--coral); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,87,74,0.3); }

.btn-ghost-lg {
  display: inline-block;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.btn-ghost-lg:hover { border-color: var(--border-dk); color: var(--text-1); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-1);
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
  transition: all var(--t);
}
.btn-link:hover { border-color: var(--coral); color: var(--coral); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-1);
  padding: 4px;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--border);
  background: white;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn-nav-fill {
  text-align: center;
  margin-top: 8px;
  border: none;
  padding: 16px;
  border-radius: var(--r-sm);
  color: #ffffff !important;
  background: var(--text-1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--bg-warm);
  padding: 60px 0 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-end;
  min-height: calc(100vh - 140px);
  padding-bottom: 0;
}

.hero-text {
  padding-bottom: 80px;
}

.hero-h1 {
  margin-bottom: 20px;
  color: var(--text-1);
}

.hero-h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-4);
}
.hero-note a { color: var(--text-3); text-decoration: underline; }

.hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.hero-ui-card {
  position: relative;
  background: #111;
  border-radius: 44px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  border: 10px solid #111;
  /* notch bar */
}

.hero-ui-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #111;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.hero-ui-img {
  width: 100%;
  display: block;
  border-radius: 34px;
}

/* ══════════════════════════════════════════════════════════════════
   TRUSTED BAR
   ══════════════════════════════════════════════════════════════════ */
.trusted-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trusted-bar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trusted-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.trusted-logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.t-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  white-space: nowrap;
}

.t-logo-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   FEATURES INTRO
   ══════════════════════════════════════════════════════════════════ */
.section-intro {
  padding: 100px 0 60px;
  background: white;
}

.section-intro h2 { margin-bottom: 16px; }

.intro-desc {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════
   FEATURE SECTIONS
   ══════════════════════════════════════════════════════════════════ */
.feat-section {
  padding: 80px 0;
  background: white;
}

.feat-alt {
  background: var(--bg-soft);
}

.feat-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feat-ltr .feat-text { order: 1; }
.feat-ltr .feat-visual { order: 2; }
.feat-rtl .feat-text { order: 2; }
.feat-rtl .feat-visual { order: 1; }

/* Feature Text */
.feat-text h2 {
  margin-bottom: 16px;
  color: var(--text-1);
}

.feat-text p {
  font-size: 1rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 28px;
}

.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.feat-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* Raw Image container */
.ui-raw-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.ui-raw-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* UI Frame — phone screenshot style */
.ui-frame {
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 10px #111, 0 0 0 11px rgba(255,255,255,0.08);
  background: white;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 280px;
  margin: 0 auto;
}

.ui-frame:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 48px 100px rgba(0,0,0,0.22), 0 0 0 10px #111, 0 0 0 11px rgba(255,255,255,0.08);
}

.ui-frame img {
  width: 100%;
  display: block;
}

.ui-frame-wide {
  max-width: 300px;
}

/* ui-frame-web — for desktop/web screenshots, no phone frame */
.ui-frame-web {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
  background: white;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 560px;
}

/* XL version for full-width display */
.ui-frame-web-xl {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 12px rgba(0,0,0,0.05), 0 32px 80px rgba(0,0,0,0.12);
}

.ui-frame-web:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 32px 80px rgba(0,0,0,0.14);
}

.ui-frame-web img {
  width: 100%;
  display: block;
}

/* Feat today wide — stacked layout for big web screenshot */
.feat-today-wide {
  padding: 80px 0 60px;
  background: white;
}

.feat-text-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.feat-text-center h2 { margin-bottom: 16px; }
.feat-text-center p { font-size: 1rem; color: var(--text-3); line-height: 1.75; margin-bottom: 28px; }

.feat-list-row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-bottom: 28px;
}

.feat-list-row li { font-size: 0.88rem; }

.feat-visual-wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* People section — composite image (pre-composed dual phone) */
.people-composite {
  width: 100%;
  max-width: 480px;
  transition: transform 0.4s ease;
}

.people-composite:hover {
  transform: translateY(-6px);
}

.people-composite img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Feat visual — ensure visuals are centered */
.feat-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ══════════════════════════════════════════════════════════════════
   INTEGRATIONS
   ══════════════════════════════════════════════════════════════════ */
.integrations {
  padding: 100px 0;
  background: white;
  border-top: 1px solid var(--border);
}

.integrations h2 { margin-bottom: 0; }
.integrations .intro-desc { margin-bottom: 56px; }

.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.int-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--t);
}

.int-card:hover {
  background: white;
  box-shadow: var(--s-card);
  transform: translateY(-2px);
}

.int-card-soon { opacity: 0.6; }
.int-card-soon:hover { opacity: 1; }

.int-icon-wrap {
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* Real brand logo inside integration card */
.int-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.int-info { flex: 1; }
.int-info h4 { margin-bottom: 4px; }
.int-info p { font-size: 0.82rem; color: var(--text-3); line-height: 1.5; }

.int-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  align-self: flex-start;
}
.int-badge.connected { background: #ecfdf5; color: #059669; }
.int-badge.soon { background: var(--bg-soft); color: var(--text-4); border: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════ */
.pricing {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.pricing h2 { margin-bottom: 0; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 56px auto 0;
}

.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  position: relative;
  transition: all var(--t);
}
.price-card:hover { box-shadow: var(--s-lg); transform: translateY(-3px); }

.price-card-pro {
  border-color: var(--coral);
  border-width: 2px;
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  margin-bottom: 12px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}

.price-soon {
  font-size: 1.6rem;
}

.price-period {
  font-size: 0.82rem;
  color: var(--text-4);
  margin-bottom: 16px;
}

.price-tagline {
  font-size: 0.88rem;
  color: var(--text-3);
  margin-bottom: 28px;
  line-height: 1.5;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.price-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
}

.price-locked { color: var(--text-4) !important; }

.btn-price-outline {
  display: block;
  width: 100%;
  text-align: center;
  border: 1.5px solid var(--border-dk);
  color: var(--text-1);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.btn-price-outline:hover { border-color: var(--text-1); background: var(--text-1); color: white; }

.btn-price-fill {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--text-1);
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.btn-price-fill:hover { background: var(--coral); transform: translateY(-1px); }

.price-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-4);
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════════════
   BIG CTA
   ══════════════════════════════════════════════════════════════════ */
.big-cta {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 100px 0;
  overflow: hidden;
}

.big-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.big-cta-text h2 { margin-bottom: 16px; }
.big-cta-text p { font-size: 1rem; color: var(--text-3); line-height: 1.7; margin-bottom: 40px; }

.cta-stores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  max-width: 480px;
}

.store-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text-1);
  color: white;
  padding: 13px 20px;
  border-radius: var(--r-md);
  transition: all var(--t);
  text-decoration: none;
  min-width: 0;
}
.store-chip:hover { background: var(--coral); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,87,74,0.3); }

.store-chip-web {
  background: white;
  color: var(--text-1);
  border: 1.5px solid var(--border-dk);
}
.store-chip-web:hover { background: var(--text-1); color: white; }

.store-icon { font-size: 1.5rem; }

/* Real brand SVG icon */
.store-brand-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-sub { font-size: 0.68rem; color: rgba(255,255,255,0.6); }
.store-main { font-size: 0.95rem; font-weight: 700; }

.cta-hint { font-size: 0.8rem; color: var(--text-4); }

/* CTA Visual — stacked UI cards */
.cta-ui-stack {
  position: relative;
  height: 380px;
}

.cta-ui-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--s-xl);
}

.cta-ui-back {
  width: 80%;
  right: 0;
  top: 0;
  transform: rotate(3deg) translateY(20px);
  opacity: 0.6;
}

.cta-ui-front {
  width: 80%;
  left: 0;
  bottom: 0;
  transform: rotate(-2deg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}

.cta-ui-back img, .cta-ui-front img { width: 100%; }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--text-1);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand .logo-text { color: white; }
.footer-brand .logo-d { background: var(--coral); }
.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin: 16px 0 12px;
  line-height: 1.5;
}

.footer-contact a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--t);
}
.footer-contact a:hover { color: white; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.25);
  transition: color var(--t);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

.btn-lang-footer {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
}
.btn-lang-footer:hover { border-color: var(--coral); color: var(--coral); }

/* ══════════════════════════════════════════════════════════════════
   SYNC SECTION
   ══════════════════════════════════════════════════════════════════ */
.sync-section { background: var(--bg-soft); border-top: 1px solid var(--border); }

.sync-header {
  margin-bottom: 48px;
}
.sync-header h2 { margin-bottom: 12px; }

.sync-visual {
  margin-bottom: 80px;
  padding-bottom: 40px;
}

.ui-frame-sync {
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--r-xl);
}

/* Sync section device layout */
.sync-device-wrap {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  max-width: 1060px;
  margin: 0 auto;
  padding-bottom: 60px;
  justify-content: center;
}

.sync-web-card {
  flex: 1;
  min-width: 0;
}

.sync-web-card .ui-frame-web-xl {
  max-width: 100%;
}

/* ══ MONITOR MOCKUP ════════════════════════════════════════════════ */
.monitor-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.monitor-frame {
  width: 100%;
  background: #1a1a1f;
  border-radius: 20px 20px 10px 10px;
  padding: 24px 24px 18px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.10),
    0 32px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
}

.monitor-camera {
  width: 8px;
  height: 8px;
  background: #3a3a42;
  border-radius: 50%;
  margin: 0 auto 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.monitor-screen {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.8);
}

.monitor-screen img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.monitor-neck {
  width: 12%;
  height: 28px;
  background: linear-gradient(180deg, #252528 0%, #1e1e22 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.monitor-base {
  width: 38%;
  height: 12px;
  background: linear-gradient(180deg, #2a2a2e 0%, #222226 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04);
}

.sync-phones-cluster {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  bottom: auto;
  right: auto;
}


/* 2-phone cluster for sync section */
.sync-phone-1,
.sync-phone-2 {
  /* Override ui-frame border — we use ::after overlay instead */
  border: none !important;
  overflow: visible !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28) !important;
  position: relative;
}

/* Phone frame rendered ABOVE the screenshot via pseudo-element */
.sync-phone-1::after,
.sync-phone-2::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 10px solid #111;
  border-radius: 46px;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.sync-phone-1 img,
.sync-phone-2 img {
  display: block;
  width: 100%;
  border-radius: 26px;
}

.sync-phone-1 {
  max-width: 165px;
  transform: translateX(18px) rotate(-4deg);
  opacity: 0.9;
  z-index: 3;
}

.sync-phone-2 {
  max-width: 175px;
  transform: rotate(3deg);
  z-index: 4;
}

.sync-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;   /* equal row height */
}

.sync-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: row;      /* icon left, text right */
  align-items: flex-start;
  gap: 14px;
  transition: all var(--t);
  height: 100%;             /* fill grid cell — equal height */
  box-sizing: border-box;
}
.sync-chip:hover {
  box-shadow: var(--s-card);
  transform: translateY(-2px);
  border-color: var(--coral);
}

.sync-chip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

/* When chip icon contains an SVG instead of emoji */
.sync-chip-icon.sync-chip-svg {
  font-size: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sync-chip-icon.sync-chip-svg svg {
  width: 26px;
  height: 26px;
}

.sync-chip strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.sync-chip p {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 768px) {
  .sync-chips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sync-chips { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 0 0 60px; }
  .hero-text { padding-bottom: 40px; }
  .hero-img-wrap { display: none; }
  .feat-inner { grid-template-columns: 1fr; gap: 40px; }
  .feat-rtl .feat-text { order: 1; }
  .feat-rtl .feat-visual { order: 2; }
  .big-cta-inner { grid-template-columns: 1fr; }
  .cta-ui-stack { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .int-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-ctas .btn-nav-ghost, .nav-ctas .btn-nav-fill, .nav-ctas .btn-lang { display: none; }
  .hamburger { display: block; }
  .hero { padding-top: 80px; }
  .trusted-bar .container { flex-direction: column; align-items: flex-start; gap: 16px; }
  .int-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 16px; text-align: center; }
  .cta-stores { flex-direction: column; }
  .store-chip { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDE — MOBILE BALANCE FIX
   ══════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  /* Only override bottom padding — keep container's side padding (28px) */
  .hero-inner { padding: 0 0 48px !important; }
  .hero-text { padding-bottom: 32px !important; }
  /* Sync stacked */
  .sync-device-wrap { flex-direction: column; align-items: center; gap: 32px; }
  .sync-web-card { width: 100%; max-width: 600px; }
  .sync-phones-cluster { width: 300px; }
}

/* Mobile */
@media (max-width: 768px) {
  .hero { padding-top: 52px !important; }
  .hero-h1 { font-size: clamp(2.2rem, 9vw, 3.2rem) !important; line-height: 1.15; }
  .hero-desc { font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trusted-logos { flex-wrap: wrap; gap: 12px; }
  .feat-text h2 { font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important; }
  .people-composite { max-width: 340px; margin: 0 auto; }
  /* Sync — hide monitor, show phones centered */
  .sync-web-card { display: none !important; }
  .sync-device-wrap { justify-content: center; padding-bottom: 32px; }
  .sync-phones-cluster { width: 100%; max-width: 320px; }
  .sync-phone-1 { max-width: 145px !important; }
  .sync-phone-2 { max-width: 155px !important; }
  .sync-chips { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .cta-stores { grid-template-columns: 1fr !important; max-width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-h1 { font-size: 1.9rem !important; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { width: 100%; justify-content: center; }
  .sync-chips { grid-template-columns: 1fr !important; }
  .footer-cols { grid-template-columns: 1fr !important; }
  .store-chip { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   HERO MOBILE PADDING FIX
   (padding shorthand was zeroing out container's 28px side padding)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Only set bottom — do NOT use shorthand padding which zeros left/right */
  .hero-inner {
    padding-top: 0 !important;
    padding-left: 0 !important;  /* container already handles this */
    padding-right: 0 !important;
    padding-bottom: 48px !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 48px !important;
  }
  .hero-text {
    padding-top: 28px !important;   /* breathing room from top */
    padding-bottom: 40px !important;
  }
  .hero-h1 {
    font-size: clamp(2rem, 8.5vw, 2.8rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
  }
  .hero-desc {
    font-size: 1rem !important;
    margin-bottom: 28px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   HERO STRUCTURE FIX (container separated from hero-inner)
   Now .container handles side padding; hero-inner only needs bottom
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    padding-bottom: 48px !important;
    /* Reset any shorthand overrides above */
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 40px !important;
  }
  .hero-text {
    padding-top: 24px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   HERO MOBILE — EVERNOTE-STYLE REDESIGN
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* 1. Spacious Top headspace & remove 100svh constraint */
  .hero {
    padding-top: 90px !important;
    padding-bottom: 10px !important; /* Reduced 50% more */
    height: auto !important;
    display: block !important;
  }
  .hero .container {
    display: block !important;
  }

  .hero-inner {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 2. Left-aligned Text */
  .hero-text {
    padding-top: 0 !important;
    padding-bottom: 6px !important; /* Reduced 50% more */
    text-align: left !important;
  }

  /* 3. Title size and spacing */
  .hero-h1 {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
  }

  /* 4. Description */
  .hero-desc {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    color: var(--text-2) !important;
    padding: 0 !important;
  }

  /* 5. Buttons — Left-aligned, stack nicely */
  .hero-btns {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .hero-btns .btn-primary-lg,
  .hero-btns .btn-ghost-lg {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 16px 20px !important;
    text-align: center !important;
  }

  /* 6. Note line left-aligned */
  .hero-note {
    text-align: left !important;
    margin-bottom: 4px !important; /* Reduced 50% more */
  }

  /* 7. Full visible product image with nice spacing */
  .hero-img-wrap {
    display: block !important;
    margin-top: 4px !important; /* Reduced 50% more */
    width: 100% !important;
  }

  .hero-img-wrap .hero-ui-card {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  /* 8. Restore "Work together" section image on mobile if it was hidden, 
     or let it flow naturally in the new airy layout */
  #feat-people .feat-visual {
    display: flex !important;
    margin-top: 32px;
  }
}


/* ══════════════════════════════════════════════════════════════════
   TRUSTED BAR — MOBILE SINGLE ROW (horizontal scroll)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trusted-bar {
    padding: 32px 0 !important;
  }
  .trusted-bar .container {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .trusted-logos {
    display: flex !important;
    flex-wrap: nowrap !important;        /* force single row */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding-bottom: 6px !important;     /* space for scrollbar on some devices */
    /* hide scrollbar but keep functionality */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: calc(100vw - 56px);          /* full width minus container padding */
    margin-right: -28px;                /* extend to edge */
    padding-right: 28px;
  }

  .trusted-logos::-webkit-scrollbar {
    display: none;
  }

  .t-logo {
    flex-shrink: 0 !important;           /* prevent squishing */
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
    gap: 5px !important;
  }

  .t-logo-img {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   TRUSTED BAR — CENTER ALIGN ON MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trusted-bar .container {
    align-items: center !important;
  }

  .trusted-label {
    text-align: center !important;
  }

  .trusted-logos {
    justify-content: center !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SYNC SECTION — RESTORE MONITOR ON MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Restore monitor (was hidden) */
  .sync-web-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Stack: text → monitor → phones */
  .sync-device-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 32px !important;
    padding-bottom: 32px !important;
  }

  /* Monitor: full width but reasonably sized */
  .monitor-mockup {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  /* Phones cluster: centered below monitor, smaller */
  .sync-phones-cluster {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 auto;
  }

  .sync-phone-1 { max-width: 118px !important; }
  .sync-phone-2 { max-width: 128px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   TRUSTED BAR — FIX CLIPPING + SMALLER BUBBLES
   'safe center' = center if fits, start-aligned if overflow (no clip)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trusted-logos {
    justify-content: safe center !important;  /* prevents edge clipping */
    gap: 6px !important;
    padding: 0 4px 4px !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .t-logo {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
    gap: 4px !important;
  }

  .t-logo-img {
    width: 13px !important;
    height: 13px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SYNC SECTION MOBILE — MONITOR + PHONE OVERLAY LAYOUT
   Phones positioned bottom-right overlapping monitor
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Thinner monitor frame on mobile */
  .monitor-frame {
    padding: 8px 8px 6px !important;
    border-radius: 12px 12px 6px 6px !important;
  }

  .monitor-camera {
    width: 5px !important;
    height: 5px !important;
    margin-bottom: 6px !important;
  }

  .monitor-neck {
    height: 18px !important;
  }

  .monitor-base {
    height: 8px !important;
    width: 30% !important;
  }

  /* Wrapper: relative so phones can be absolutely positioned */
  .sync-device-wrap {
    position: relative !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding-bottom: 100px !important;  /* room for phone cluster below monitor */
  }

  /* Monitor: full width */
  .sync-web-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 1;
  }

  .monitor-mockup {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Phones: absolute, bottom-right, overlapping monitor */
  .sync-phones-cluster {
    position: absolute !important;
    bottom: 0px !important;
    right: 0px !important;
    width: 175px !important;
    max-width: 175px !important;
    z-index: 2;
    margin: 0 !important;
  }

  .sync-phone-1 {
    max-width: 78px !important;
  }

  .sync-phone-2 {
    max-width: 88px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   PHONE MOCKUP — MOBILE BORDER RADIUS FIX
   At 78-88px wide, border-radius:46px looks circular → reduce
   Real iPhone corner radius ≈ 14-15% of width
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Frame overlay: 78px + 20px(inset) = 98px wide → 14px radius */
  .sync-phone-1::after {
    border-radius: 18px !important;
    inset: -7px !important;
    border-width: 7px !important;
  }

  /* Frame overlay: 88px + 20px = 108px wide → 16px radius */
  .sync-phone-2::after {
    border-radius: 20px !important;
    inset: -7px !important;
    border-width: 7px !important;
  }

  /* Screenshot image corner: slightly less than frame */
  .sync-phone-1 img {
    border-radius: 12px !important;
  }

  .sync-phone-2 img {
    border-radius: 14px !important;
  }

  /* Slightly less rotation on small size for cleaner look */
  .sync-phone-1 {
    transform: translateX(12px) rotate(-3deg) !important;
  }

  .sync-phone-2 {
    transform: rotate(2deg) !important;
  }
}
