:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.78);
  --surface-card: #ffffff;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-light: rgba(226, 232, 240, 0.8);
  
  /* Twally Palette: Warm Humanist & Duo Colors */
  --duo-primary: #2b4c6f;       /* Partner A (Slate Navy) */
  --duo-primary-dark: #1e354d;
  --duo-primary-soft: #e9eff5;
  --duo-partner: #c06c84;       /* Partner B (Dusty Rose) */
  --duo-partner-dark: #9e4f65;
  --duo-partner-soft: #faebef;
  --duo-amber: #d4a373;         /* Warm Amber */
  --duo-amber-soft: #fcf6ef;
  --duo-success: #2e7d32;       /* Forest Green */
  --duo-success-soft: #eef7ee;
  --duo-warning: #d97706;       /* Warm Ochre */
  
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(43, 76, 111, 0.08), 0 2px 6px rgba(43, 76, 111, 0.04);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(43, 76, 111, 0.06);
  
  --max-w: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--duo-primary);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(43, 76, 111, 0.18);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--duo-primary);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.top-store-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--duo-primary), #1e354d);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(43, 76, 111, 0.25);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.top-store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(43, 76, 111, 0.32);
}

.language-control {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-control select {
  min-width: 96px;
  color: var(--ink);
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: clip;
  overflow-x: clip;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
  background: radial-gradient(circle at 80% 20%, rgba(192, 108, 132, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 10% 40%, rgba(43, 76, 111, 0.08) 0%, transparent 50%),
              var(--bg);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(43, 76, 111, 0.08);
  color: var(--duo-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(43, 76, 111, 0.12);
}

.hero-badge .heart-icon {
  color: var(--duo-partner);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--duo-primary) 20%, var(--duo-partner) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--duo-primary);
  letter-spacing: -0.015em;
}

.hero-lede {
  margin: 0 0 32px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted);
  line-height: 1.68;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--duo-primary), #1b354f);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(43, 76, 111, 0.28);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(43, 76, 111, 0.35);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  background: #000000;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge .apple-mark {
  font-size: 1.85rem;
  line-height: 1;
}

.app-store-badge span {
  display: flex;
  flex-direction: column;
}

.app-store-badge small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.app-store-badge strong {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
}

/* ==========================================================================
   Hero Visual / Dual Phone Mockup
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-phones {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-frame {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22),
              0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1430;
  object-fit: cover;
  border-radius: 36px;
}

.hero-phone-main {
  width: 270px;
  z-index: 2;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.28),
              0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hero-phone-side {
  position: absolute;
  right: 0;
  top: 36px;
  width: 230px;
  z-index: 1;
  opacity: 0.94;
  transform: rotate(5deg) translateY(12px);
  filter: brightness(0.97);
}

.hero-phones:hover .hero-phone-side {
  transform: rotate(2.5deg) translateY(4px);
  opacity: 1;
  filter: brightness(1);
}

/* ==========================================================================
   App Store Screenshots Rail
   ========================================================================== */
.screenshots-section {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 24px clamp(20px, 4vw, 56px) 64px;
}

.screenshots-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.screenshots-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.screenshots-heading a {
  color: var(--duo-primary);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.screenshots-heading a:hover {
  color: var(--duo-partner);
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.screenshot-rail figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.screenshot-rail img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1430;
  object-fit: contain;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-rail img:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.screenshot-rail figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Features Section (App Store 8 Core Features)
   ========================================================================== */
.features-section {
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 56px clamp(20px, 4vw, 56px) 64px;
  background: var(--surface);
  border-top: 1px solid var(--line-light);
}

.features-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-strip-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-break: break-word;
}

.feature-strip-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 76, 111, 0.25);
}

.feature-strip-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.feature-strip-icon.primary {
  background: var(--duo-primary-soft);
  color: var(--duo-primary);
}

.feature-strip-icon.partner {
  background: var(--duo-partner-soft);
  color: var(--duo-partner);
}

.feature-strip-icon.amber {
  background: var(--duo-amber-soft);
  color: var(--duo-amber);
}

.feature-strip-icon.green {
  background: var(--duo-success-soft);
  color: var(--duo-success);
}

.feature-strip-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.feature-strip-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.feature-strip-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   Interactive Smart Expense & Split Sandbox
   ========================================================================== */
.sandbox-section {
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 80px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sandbox-container {
  max-width: 960px;
  margin: 0 auto;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--duo-primary);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.sandbox-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sandbox-presets-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.sandbox-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.preset-chip {
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: var(--duo-primary-soft);
  color: var(--duo-primary);
  border-color: rgba(43, 76, 111, 0.3);
}

.preset-chip.active {
  background: var(--duo-primary);
  color: #ffffff;
  border-color: var(--duo-primary);
}

.sandbox-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.sandbox-input {
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sandbox-input:focus {
  border-color: var(--duo-primary);
  box-shadow: 0 0 0 4px rgba(43, 76, 111, 0.12);
}

.sandbox-button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--duo-primary), #1e354d);
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(43, 76, 111, 0.25);
  transition: transform 0.15s ease;
}

.sandbox-button:hover {
  transform: translateY(-1px);
}

/* Sandbox Results Display */
.sandbox-result-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.sandbox-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.meta-key {
  color: var(--muted);
  font-weight: 600;
}

.meta-val {
  font-weight: 750;
  color: var(--ink);
}

.meta-val.highlight {
  color: var(--duo-primary);
  font-size: 1.15rem;
}

.sandbox-split-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-title {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--ink-secondary);
}

.split-note {
  font-size: 0.75rem;
  color: var(--duo-success);
  font-weight: 700;
}

.live-ratio-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.live-bar-a {
  background: var(--duo-primary);
  height: 100%;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-bar-b {
  background: var(--duo-partner);
  height: 100%;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.split-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   Deep Dive Feature Sections
   ========================================================================== */
.deep-features {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  padding: 96px clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.deep-row.reverse {
  direction: rtl;
}

.deep-row.reverse > * {
  direction: ltr;
}

.deep-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.deep-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 750;
  margin-bottom: 16px;
}

.deep-icon-pill.primary {
  background: var(--duo-primary-soft);
  color: var(--duo-primary);
}

.deep-icon-pill.partner {
  background: var(--duo-partner-soft);
  color: var(--duo-partner);
}

.deep-icon-pill.amber {
  background: var(--duo-amber-soft);
  color: var(--duo-amber);
}

.deep-icon-pill.green {
  background: var(--duo-success-soft);
  color: var(--duo-success);
}

.deep-title {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.25;
}

.deep-desc {
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.65;
}

.deep-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deep-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.deep-points li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--duo-success);
  margin-top: 2px;
}

.deep-card-visual {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Graphic elements inside deep cards */
.tap-illustration {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tap-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
}

.tap-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--duo-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tap-step-content {
  display: flex;
  flex-direction: column;
}

.tap-step-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ink);
}

.tap-step-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Privacy shield graphic */
.privacy-graphic {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.shield-circle {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.24);
  box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.shield-circle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.25);
}

.shield-svg {
  filter: drop-shadow(0 3px 6px rgba(5, 150, 105, 0.26));
}

.privacy-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.privacy-badge-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Together Membership & Transparency
   ========================================================================== */
.together-section {
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  background: #f1f5f9;
  padding: 80px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.together-container {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  width: 100%;
  box-sizing: border-box;
}

.pricing-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pricing-card.annual-card {
  border: 2px solid var(--duo-primary);
  box-shadow: 0 12px 32px rgba(43, 76, 111, 0.12);
}

.pricing-card.featured {
  border: 2px solid var(--duo-partner);
  box-shadow: 0 16px 40px rgba(192, 108, 132, 0.16);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--duo-primary), var(--duo-partner));
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card-badge.trial {
  background: linear-gradient(135deg, var(--duo-primary), #3b628c);
}

.pricing-card-badge.lifetime {
  background: linear-gradient(135deg, var(--duo-partner), #d4a373);
}

.pricing-plan-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.pricing-plan-sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.pricing-features li svg {
  color: var(--duo-success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.final-cta {
  padding: 96px clamp(20px, 4vw, 56px);
  text-align: center;
  background: radial-gradient(circle at 50% 10%, rgba(43, 76, 111, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 50% 90%, rgba(192, 108, 132, 0.08) 0%, transparent 60%),
              var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(43, 76, 111, 0.22);
  margin-bottom: 24px;
}

.cta-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.cta-body {
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 32px clamp(20px, 4vw, 56px);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--duo-primary);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--duo-primary);
}

.footer-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-email:hover {
  color: var(--duo-primary);
}

/* ==========================================================================
   Legal & Support Pages Styling
   ========================================================================== */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 40px) 96px;
}

.legal-hero {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-hero .eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--duo-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-hero .updated {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-content {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.contact-card {
  background: var(--duo-primary-soft);
  border: 1px solid rgba(43, 76, 111, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 36px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-copy {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .deep-row,
  .deep-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
  }
  
  .sandbox-result-box {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 28px;
  }

  .screenshot-rail {
    overflow-x: auto;
    grid-template-columns: repeat(6, 170px);
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .screenshot-rail figure {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 56px;
  }
  
  .nav-links {
    display: none;
  }

  .brand {
    font-size: 1.12rem;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
  }

  .top-store-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .language-control {
    min-height: 32px;
    padding: 0 4px;
  }

  .language-control select {
    font-size: 0.76rem;
    padding: 2px 2px;
    max-width: 78px;
  }

  .hero-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 8px 0;
  }

  .hero-phones {
    width: 100%;
    max-width: 280px;
    min-height: 350px;
    margin: 0 auto;
    position: relative;
  }
  
  .hero-phone-main {
    width: 175px;
  }
  
  .hero-phone-side {
    width: 140px;
    right: 2px;
    top: 20px;
    opacity: 0.88;
    transform: rotate(3deg) translateY(8px);
  }

  .hero-title {
    font-size: clamp(1.45rem, 5.8vw, 1.95rem);
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    margin-bottom: 16px;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  
  .sandbox-input-row {
    flex-direction: column;
    gap: 10px;
  }

  .sandbox-input {
    width: 100%;
    min-width: 0;
  }

  .sandbox-button {
    width: 100%;
    justify-content: center;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 32px 14px 36px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6.2vw, 1.85rem);
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
  }

  .hero-lede {
    font-size: 0.92rem;
    margin-bottom: 20px;
    word-break: break-word;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .button,
  .hero-actions .app-store-badge {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .screenshots-section {
    padding: 20px 14px 44px;
  }

  .screenshots-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .features-section {
    padding: 36px 14px 44px;
  }

  .sandbox-section {
    padding: 40px 14px;
  }

  .sandbox-card {
    padding: 18px 12px;
    border-radius: 20px;
  }

  .preset-chip {
    white-space: normal;
    text-align: left;
    max-width: 100%;
    line-height: 1.35;
    word-break: break-word;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .sandbox-meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }

  .sandbox-meta-val {
    text-align: left;
    word-break: break-word;
  }

  .deep-features {
    padding: 40px 14px;
    gap: 44px;
  }

  .deep-card-visual {
    padding: 16px 12px;
    border-radius: 20px;
  }

  .together-section {
    padding: 40px 14px 56px;
  }

  .pricing-card {
    padding: 24px 16px;
    border-radius: 20px;
  }

  .final-cta {
    padding: 56px 14px;
  }

  .final-cta h2 {
    font-size: clamp(1.5rem, 6.2vw, 2rem);
    word-break: break-word;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 6px 10px;
    gap: 6px;
  }

  .brand {
    font-size: 1.02rem;
    gap: 6px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 6px;
  }

  .top-store-button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .language-control {
    min-height: 30px;
    padding: 0 2px;
  }

  .language-control select {
    font-size: 0.72rem;
    max-width: 72px;
  }

  .hero-phones {
    max-width: 250px;
    min-height: 310px;
  }

  .hero-phone-main {
    width: 155px;
  }

  .hero-phone-side {
    width: 125px;
    right: 0;
    top: 14px;
    transform: rotate(3deg) translateY(6px);
  }

  .split-stats {
    flex-direction: column;
    gap: 4px;
  }
}
