/* ============================================================
   Offin — Marketing site styles
   Palette + type scale mirror Ofin/Shared/Theme/OfinDS.swift
   and Design System/app.css. Keep these in sync if the
   in-app brand changes.
   ============================================================ */

:root {
  /* Brand */
  --accent:        #C5402A; /* terracotta */
  --accent-soft:   #F7E6E0;
  --accent-deep:   #8E2C1D;

  /* Surfaces */
  --bg:            #FAFAF7; /* warm off-white */
  --bg-outer:      #E9E8E2;
  --surface:       #FFFFFF;
  --surface-2:     #F4F3EE;

  /* Ink */
  --ink:           #111111;
  --ink-2:         #2A2A2A;
  --ink-mute:      #6A6A6A;
  --ink-faint:     #9A9A9A;

  /* Semantic */
  --positive:      #1F8A5C;

  /* Hairlines */
  --hairline:        rgba(17, 17, 17, 0.08);
  --hairline-strong: rgba(17, 17, 17, 0.14);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
  color: var(--ink-mute);
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  line-height: 1.6;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

section {
  padding: 88px 0;
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav__brand img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav__menu-toggle span,
.nav__menu-toggle span::before,
.nav__menu-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__menu-toggle span::before { position: absolute; top: -6px; }
.nav__menu-toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   Buttons / App Store badge
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover { background: var(--accent-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}

.btn--ghost:hover { border-color: var(--ink); }

/* App Store badge — recreates Apple's standard
   "Download on the App Store" badge styling. */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #000;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.app-store-badge:hover { opacity: 0.85; }
.app-store-badge:active { transform: scale(0.98); }

.app-store-badge__icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.app-store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-store-badge__text small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-store-badge__text strong {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  margin-top: 1px;
}

/* "Coming soon" badge — sits alongside the App Store badge to flag
   upcoming Mac, Windows & Android apps. */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
}

.coming-soon-badge__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--ink-mute);
}

.coming-soon-badge__icons svg {
  width: 18px;
  height: 18px;
}

.coming-soon-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.coming-soon-badge__text small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.coming-soon-badge__text strong {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.coming-soon-badge--on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.coming-soon-badge--on-dark .coming-soon-badge__icons { color: rgba(255, 255, 255, 0.55); }
.coming-soon-badge--on-dark .coming-soon-badge__text small { color: rgba(255, 255, 255, 0.45); }
.coming-soon-badge--on-dark .coming-soon-badge__text strong { color: #fff; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: 64px;
  padding-bottom: 40px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero__copy { max-width: 520px; }

.hero__copy .eyebrow { margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero__fineprint {
  font-size: 13px;
  color: var(--ink-faint);
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(197, 64, 42, 0.16) 0%, rgba(197, 64, 42, 0) 65%);
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   Phone mockup (placeholder UI, no real screenshots)
   ============================================================ */

.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  aspect-ratio: 9 / 19.3;
  background: var(--bg-outer);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px -28px rgba(17, 17, 17, 0.35),
    0 14px 28px -14px rgba(17, 17, 17, 0.18);
}

.phone--small {
  width: 220px;
}

.phone__notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: var(--ink);
  border-radius: 16px;
  z-index: 3;
}

.phone--small .phone__notch {
  width: 80px;
  height: 20px;
  top: 18px;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 16px 16px;
  gap: 12px;
}

.phone--small .phone__screen {
  padding: 30px 12px 12px;
  gap: 10px;
}

.mock-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mock-balance {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.phone--small .mock-balance { font-size: 24px; }

.mock-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.mock-row + .mock-row {
  border-top: 1px solid var(--hairline);
}

.mock-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  flex: none;
}

.mock-row__lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}

.mock-line--40 { width: 40%; }
.mock-line--55 { width: 55%; }
.mock-line--65 { width: 65%; }
.mock-line--80 { width: 80%; }

.mock-amount {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  flex: none;
}

.mock-chips { display: flex; gap: 8px; }

.mock-chip {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
}

.mock-chip--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding-top: 8px;
}

.mock-bars__bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent-soft);
}

.mock-bars__bar--active { background: var(--accent); }

.mock-rings {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.mock-ring {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(var(--accent) calc(var(--pct, 60) * 1%), var(--surface-2) 0);
}

.mock-ring::after {
  content: '';
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: var(--bg);
}

.mock-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.mock-tabbar__item {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
}

.mock-tabbar__item--active { background: var(--accent); }

/* ============================================================
   Features
   ============================================================ */

.features { background: var(--surface-2); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature-card { grid-column: span 6; }

@media (min-width: 640px) {
  .feature-card { grid-column: span 3; }
  .features__grid > .feature-card:nth-child(5) { grid-column: span 6; }
}

@media (min-width: 980px) {
  .feature-card { grid-column: span 2; }
  .features__grid > .feature-card:nth-child(4),
  .features__grid > .feature-card:nth-child(5) {
    grid-column: span 3;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: left;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-deep);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   Privacy strip
   ============================================================ */

.privacy-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(197, 64, 42, 0.18);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.privacy-strip strong { font-weight: 700; }

.privacy-strip__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-deep);
  opacity: 0.4;
}

/* ============================================================
   Screenshots
   ============================================================ */

.screenshots__row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots__row::-webkit-scrollbar { height: 8px; }
.screenshots__row::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 999px;
}

.screenshot-item {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-item__caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.screenshot-item__caption span {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================================
   Banks strip
   ============================================================ */

.banks {
  text-align: center;
}

.banks__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.banks__chip {
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ============================================================
   Final CTA
   ============================================================ */

.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 72px 24px;
  text-align: center;
  color: #fff;
}

.cta-banner__inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-banner .app-store-badge {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 56px 0 40px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.footer__brand img {
  height: 30px;
  width: auto;
}

.footer__tagline {
  margin-top: 10px;
  font-size: 14px;
  max-width: 280px;
}

.footer__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__copy { max-width: 600px; margin: 0 auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { order: -1; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }

  .nav__links, .nav__cta .btn--ghost {
    display: none;
  }

  .nav__menu-toggle { display: flex; }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--hairline);
  }

  .cta-banner { margin: 0 16px; padding: 56px 20px; }

  .footer__top { flex-direction: column; }
  .footer__links { gap: 40px; }
}

@media (max-width: 420px) {
  .phone { width: 240px; }
  .phone--small { width: 180px; }
}
