:root {
  --ink: #14201a;
  --ink-soft: #3d4f45;
  --muted: #6b7c72;
  --accent: #1a6b4a;
  --accent-soft: #c5e4d4;
  --accent-warm: #c45c26;
  --warn: #b45309;
  --paper: #f7faf7;
  --paper-2: #eef4ef;
  --line: rgba(20, 32, 26, 0.1);
  --phone-bezel: #1a2420;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #cfe8d8 0%, transparent 55%),
    linear-gradient(180deg, #e8efe8 0%, #d4e0d6 100%);
  line-height: 1.5;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(247, 250, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

main {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.demo-banner {
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 0.5rem;
  color: #065f46;
  font-size: 0.875rem;
  text-align: center;
}

.page-intro .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.page-intro h1 {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
}

.page-intro .lede {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

.dual-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

@media (min-width: 900px) {
  .dual-stage {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.device-col {
  margin: 0;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plat-ico {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  background: var(--accent);
}

.plat-ico.ios {
  border-radius: 6px;
}

.plat-ico.android {
  border-radius: 2px 2px 4px 4px;
  background: #3ddc84;
}

.phone {
  width: 260px;
  height: 540px;
  background: var(--phone-bezel);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.22);
  position: relative;
}

.phone-ios {
  border-radius: 40px;
}

.phone-android {
  border-radius: 28px;
  padding: 8px;
}

.island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #0d1411;
  border-radius: 14px;
  z-index: 6;
}

.camera-hole {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #0d1411;
  border-radius: 50%;
  z-index: 6;
  box-shadow: 0 0 0 3px #2a3530;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f4f7f4;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.phone-android .phone-screen {
  border-radius: 20px;
  background: #f0f3f0;
}

.phone-screen.material {
  font-feature-settings: "tnum";
}

.screen-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 14px 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
}

.phone-android .screen-pane {
  padding-top: 32px;
}

.screen-pane.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0 4px;
}

.and-bar {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.splash-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.m-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.m-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.material-brand {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.m-h {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}

.phone-android .m-h {
  font-family: var(--font-body);
  font-weight: 700;
}

.m-p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.m-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-top: auto;
}

.material-btn {
  border-radius: 24px;
  text-transform: none;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(26, 107, 74, 0.3);
}

.m-btn.secondary {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  margin-top: 8px;
  box-shadow: none;
}

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

.m-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
}

.material-goal {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.m-goal.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.m-goal .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  flex-shrink: 0;
}

.m-goal.selected .dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.insight,
.material-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 7px;
}

.material-card {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.insight .label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 3px;
}

.insight p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.privacy-badge {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.privacy-badge h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
}

.privacy-badge p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.connect-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 500;
}

.connect-row .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.connect-row .toggle {
  margin-left: auto;
  width: 36px;
  height: 20px;
  background: #c5cfc8;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.connect-row .toggle.on {
  background: var(--accent);
}

.connect-row .toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}

.connect-row .toggle.on::after {
  left: 18px;
}

.home-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.home-header .greet {
  font-size: 0.68rem;
  color: var(--muted);
}

.home-header .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.phone-android .home-header .name {
  font-family: var(--font-body);
  font-weight: 700;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.material-avatar {
  border-radius: 10px;
}

.action-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 7px;
}

.action-card.warm {
  border-left-color: var(--accent-warm);
}

.action-card.warn {
  border-left-color: var(--warn);
}

.action-card .cat {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.action-card p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.tab-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 4px;
  border-top: 1px solid var(--line);
  background: #f4f7f4;
}

.tab-bar span {
  font-size: 0.58rem;
  color: var(--muted);
  font-weight: 500;
}

.tab-bar span.on {
  color: var(--accent);
  font-weight: 700;
}

.and-tabs {
  background: #e8eee9;
  border-radius: 16px 16px 0 0;
  padding-bottom: 8px;
}

.tab-bar span[data-goto] {
  cursor: pointer;
}

.tab-bar span[data-goto]:hover {
  color: var(--accent);
}

.gesture-bar {
  height: 4px;
  width: 96px;
  margin: 6px auto 2px;
  background: #1a2420;
  border-radius: 4px;
  opacity: 0.35;
}

.money-hero {
  background: linear-gradient(145deg, #1a6b4a, #0f4733);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.phone-android .money-hero {
  border-radius: 8px;
}

.money-hero .lbl {
  font-size: 0.62rem;
  opacity: 0.75;
}

.money-hero .amt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2px 0;
  line-height: 1.1;
}

.phone-android .money-hero .amt {
  font-family: var(--font-body);
  font-weight: 700;
}

.money-hero .hint {
  font-size: 0.68rem;
  opacity: 0.85;
}

.money-list {
  background: #fff;
  border-radius: 12px;
  padding: 2px 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.phone-android .money-list {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
}

.sub-item:last-child {
  border-bottom: none;
}

.sub-item .price {
  font-weight: 600;
  color: var(--accent-warm);
}

.perm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
}

.perm-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.perm-status.off {
  background: var(--paper-2);
  color: var(--muted);
}

.perm-status.on {
  background: var(--accent-soft);
  color: var(--accent);
}

.screen-pane .m-btn.inline-cta {
  margin-top: 8px;
  flex-shrink: 0;
}

.flow-controls {
  margin-top: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
}

.step-list {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .step-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .step-list {
    grid-template-columns: repeat(8, 1fr);
  }
}

.step-btn {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.step-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.step-btn .sn {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.step-btn.active .sn {
  background: var(--accent);
  color: #fff;
}

.step-btn .st {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

.step-btn .sd {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

.note-box {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.foot {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}

.foot a {
  font-weight: 600;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}
