/* ==========================================================
   Tesoro marketing site — shared styles
   ========================================================== */

:root {
  --bg: #FBF6F1;
  --text: #211D1A;
  --accent: #C97F5D;
  --accent-2: #E3A868;
  --accent-hover: #A9603F;
  --heading-font: 'Nunito', ui-rounded, -apple-system, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--body-font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(33, 29, 26, 0.08);
}

.site-header .wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(33, 29, 26, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.active {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(33, 29, 26, 0.08);
}

.site-footer .wrap {
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-dot {
  width: 20px;
  height: 20px;
}

.footer-brand span.copy {
  font-size: 13.5px;
  color: rgba(33, 29, 26, 0.55);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(33, 29, 26, 0.55);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent-hover);
}

/* ==========================================================
   Home page
   ========================================================== */

.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 88px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding-bottom: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 127, 93, 0.10);
  border: 1px solid rgba(201, 127, 93, 0.25);
  color: var(--accent-hover);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 62px;
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin: 0;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(33, 29, 26, 0.65);
  margin: 0;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.appstore-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--text);
  color: var(--bg);
  border-radius: 14px;
  padding: 11px 24px 12px;
  line-height: 1.15;
  opacity: 0.92;
  text-decoration: none;
}

.appstore-pill .eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.7;
}

.appstore-pill .store-name {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 700;
}

.how-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Phone mockup ---------- */
.phone-stage {
  height: 640px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  border-radius: 32px;
}

.phone-scale {
  transform: scale(0.72);
  transform-origin: top center;
  flex-shrink: 0;
}

.phone-device {
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  background: #F2F2F7;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-family: var(--body-font);
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 0;
  font-family: -apple-system, "SF Pro", system-ui;
  font-weight: 600;
  font-size: 15px;
  color: #000;
}

.phone-status .icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-screen {
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.phone-content {
  flex: 1;
  overflow: hidden;
  padding: 70px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.month-nav .chev {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
.month-nav .chev.disabled {
  color: rgba(33, 29, 26, 0.2);
}
.month-nav .label {
  font-size: 15px;
  font-weight: 500;
}

.hero-card {
  height: 148px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, rgba(201, 127, 93, 0.92) 100%);
  background-size: 180% 180%;
  animation: tesoroGrad 6s ease-in-out infinite alternate;
  flex-shrink: 0;
}

.hero-card .drift {
  position: absolute;
  opacity: 0.09;
  animation: tesoroDrift 10s ease-in-out infinite alternate;
}
.hero-card .drift.d1 { left: 12%; top: 18%; font-size: 22px; animation-duration: 9s; }
.hero-card .drift.d2 { left: 46%; top: 62%; font-size: 18px; animation-duration: 11s; }
.hero-card .drift.d3 { left: 72%; top: 22%; font-size: 25px; animation-duration: 8s; animation-direction: alternate-reverse; }
.hero-card .drift.d4 { left: 86%; top: 66%; font-size: 17px; animation-duration: 12s; }
.hero-card .drift.d5 { left: 28%; top: 74%; font-size: 20px; animation-duration: 10s; animation-direction: alternate-reverse; }
.hero-card .drift.d6 { left: 60%; top: 12%; font-size: 16px; animation-duration: 13s; }

.hero-card .greet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 24px;
}
.hero-card .greet .hi {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}
.hero-card .greet .month {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

@keyframes tesoroGrad {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@keyframes tesoroDrift {
  0% { transform: translateY(14px); }
  100% { transform: translateY(-14px); }
}

.spend-card {
  border-radius: 22px;
  background: rgba(201, 127, 93, 0.05);
  border: 1px solid rgba(201, 127, 93, 0.12);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.spend-card .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.spend-card .label {
  font-size: 13px;
  font-weight: 300;
  color: rgba(33, 29, 26, 0.55);
}

.spend-card .amount {
  font-family: var(--heading-font);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.spend-card .ring-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 127, 93, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget-card {
  border-radius: 22px;
  background: rgba(33, 29, 26, 0.03);
  border: 1px solid rgba(33, 29, 26, 0.06);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.budget-ring {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
.budget-ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.budget-ring .pct .num {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 700;
  color: #C77456;
}
.budget-ring .pct .of {
  font-size: 9px;
  font-weight: 300;
  color: rgba(33, 29, 26, 0.55);
}

.budget-card .details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.budget-card .details .label {
  font-size: 13px;
  font-weight: 300;
  color: rgba(33, 29, 26, 0.55);
}
.budget-card .details .value {
  font-size: 15px;
  font-weight: 500;
}
.budget-card .details .hint {
  font-size: 11px;
  font-weight: 300;
  color: var(--accent);
}

.top-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.top-categories > .heading {
  font-size: 15px;
  font-weight: 500;
  color: rgba(33, 29, 26, 0.55);
}
.top-categories .cards {
  display: flex;
  gap: 14px;
}

.cat-card {
  width: 148px;
  height: 178px;
  flex-shrink: 0;
  border-radius: 22px;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-card .emoji { font-size: 26px; }
.cat-card .spacer { flex: 1; }
.cat-card .name { font-size: 15px; font-weight: 500; }
.cat-card .value { font-family: var(--heading-font); font-size: 22px; font-weight: 600; }
.cat-card .bar-track { height: 6px; border-radius: 4px; overflow: hidden; }
.cat-card .bar-fill { height: 100%; border-radius: 4px; }

.cat-card.rent { background: rgba(124,147,168,0.10); border: 1px solid rgba(124,147,168,0.18); }
.cat-card.rent .bar-track { background: rgba(124,147,168,0.15); }
.cat-card.rent .bar-fill { background: #7C93A8; width: 68%; }

.cat-card.groceries { background: rgba(143,169,152,0.10); border: 1px solid rgba(143,169,152,0.18); }
.cat-card.groceries .bar-track { background: rgba(143,169,152,0.15); }
.cat-card.groceries .bar-fill { background: #8FA998; width: 16%; }

.cat-card.dining { background: rgba(217,160,91,0.10); border: 1px solid rgba(217,160,91,0.18); }
.cat-card.dining .bar-track { background: rgba(217,160,91,0.15); }
.cat-card.dining .bar-fill { background: #D9A05B; width: 8%; }

.phone-fab {
  position: absolute;
  bottom: 118px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(201, 127, 93, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.phone-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 92px;
  background: rgba(251, 246, 241, 0.88);
  backdrop-filter: blur(16px);
  border-top: 0.5px solid rgba(33, 29, 26, 0.1);
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  z-index: 20;
}

.phone-tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.phone-tabbar .tab span {
  font-size: 10px;
  font-weight: 500;
  color: rgba(33, 29, 26, 0.4);
}
.phone-tabbar .tab.active span {
  color: var(--accent);
}

.phone-home-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}
.phone-home-indicator .bar {
  width: 139px;
  height: 5px;
  border-radius: 100px;
  background: rgba(33, 29, 26, 0.25);
}

/* ---------- Features ---------- */
.features {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 32px;
}

.features h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.6px;
  margin: 0 0 36px;
}

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

.feature-card {
  border-radius: 22px;
  background: rgba(201, 127, 93, 0.05);
  border: 1px solid rgba(201, 127, 93, 0.12);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card.soon {
  background: rgba(33, 29, 26, 0.03);
  border: 1px dashed rgba(33, 29, 26, 0.15);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 127, 93, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.feature-card.soon .feature-icon {
  background: rgba(33, 29, 26, 0.06);
}

.feature-card .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.soon-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: rgba(201, 127, 93, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
}

.feature-card h3 {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(33, 29, 26, 0.6);
  margin: 0;
}

/* ---------- How it works ---------- */
.how-it-works {
  background: var(--text);
  color: var(--bg);
}

.how-it-works .wrap {
  padding: 80px 32px;
}

.how-it-works h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.6px;
  margin: 0 0 48px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step .num {
  font-family: var(--heading-font);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}
.step.n1 .num { color: var(--accent); }
.step.n2 .num { color: var(--accent-2); }
.step.n3 .num { color: #8FA998; }

.step h3 {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(251, 246, 241, 0.6);
  margin: 0;
}

/* ---------- Privacy strip ---------- */
.privacy-strip {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 32px;
  text-align: center;
}

.privacy-strip p.headline {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}

.privacy-strip p.sub {
  font-size: 16px;
  color: rgba(33, 29, 26, 0.6);
  margin: 0 0 20px;
}

.privacy-strip a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ==========================================================
   Legal pages (Privacy / Terms)
   ========================================================== */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  font-size: 16px;
  line-height: 1.7;
}

.legal-main h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}

.legal-updated {
  font-size: 14px;
  font-weight: 600;
  color: rgba(33, 29, 26, 0.5);
  margin: 0 0 24px;
}

.legal-updated .placeholder {
  color: var(--accent-hover);
  background: rgba(201, 127, 93, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
}

.legal-note {
  font-size: 12px;
  font-weight: 500;
  color: rgba(33, 29, 26, 0.45);
  margin: 4px 0 0;
  font-style: italic;
}

.draft-banner {
  border: 1px solid rgba(201, 127, 93, 0.35);
  background: rgba(201, 127, 93, 0.07);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-main .contact-line {
  margin: 0 0 32px;
}

.legal-divider {
  border-top: 1px solid rgba(33, 29, 26, 0.1);
  margin: 0 0 32px;
}

.legal-main h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 24px;
  margin: 32px 0 12px;
}
.legal-main h2:first-of-type {
  margin-top: 0;
}

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

.legal-main ul {
  margin: 0 0 16px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.legal-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid rgba(33, 29, 26, 0.15);
  font-weight: 700;
}

.legal-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(33, 29, 26, 0.08);
  vertical-align: top;
}

.legal-table td.cat {
  font-weight: 700;
  white-space: nowrap;
}

.legal-table td .sub {
  font-weight: 400;
  font-size: 12.5px;
  color: rgba(33, 29, 26, 0.55);
}

/* ==========================================================
   Support page
   ========================================================== */

.support-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  flex: 1;
  width: 100%;
}

.support-main h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}

.support-main > p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(33, 29, 26, 0.65);
  margin: 0 0 36px;
}

.email-card {
  border-radius: 22px;
  background: rgba(201, 127, 93, 0.06);
  border: 1px solid rgba(201, 127, 93, 0.15);
  padding: 28px 30px;
  margin: 0 0 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-card .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(33, 29, 26, 0.5);
}

.email-card .email-link {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}

.email-card .note {
  font-size: 13.5px;
  color: rgba(33, 29, 26, 0.5);
}
.email-card .note a {
  color: rgba(33, 29, 26, 0.65);
}

.support-main h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 24px;
}

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

.faq-item {
  border-radius: 18px;
  background: rgba(33, 29, 26, 0.025);
  border: 1px solid rgba(33, 29, 26, 0.07);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item h3 {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(33, 29, 26, 0.6);
  margin: 0;
}

body.page-column {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-column .site-footer {
  margin-top: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .phone-stage {
    height: auto;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
