/* ── Variables ─────────────────────────────────────────────── */
:root {

 --bg:           #f7f5f0;
 --surface:      #fdfcfa;
 --surface-2:    #f0ede6;
 --border:       rgba(26,26,24,0.1);
 --border-hover: rgba(26,26,24,0.28);
 --text:         #1a1a18;
 --text-muted:   #4a4a44;
 --text-dim:     #8a8a80;
 --accent:       #4b685c;
 --accent-dim:   rgba(42,92,69,0.07);   /* ← less saturated tint */
 --accent-glow:  rgba(42,92,69,0.10);   /* ← subtler glow on button */
 --accent-text:  #f7f5f0;
 --red:          #8b2e2e;
 --blue:         #1e3d6e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Background grain ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 5%, rgba(42,92,69,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 90%, rgba(42,92,69,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svgxml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 32px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.left-col {
  position: sticky;
  top: 40px;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

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

.subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 540px;
}

/* ── How it works ──────────────────────────────────────────── */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-number {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.step-icon {
  font-size: 20px;
  display: block;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── View toggle buttons ─────────────────────────────────── */
.content-toggle-area {
  animation: fadeUp 0.6s 0.1s ease both;
}

.content-toggle-area .how-it-works {
  animation: none;
}

.view-toggle {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.toggle-btn {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.toggle-btn:hover {
  color: var(--text-muted);
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.toggle-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.toggle-btn.active:hover {
  background: #3a7336;
  border-color: #3a7336;
}

/* ── Video container ──────────────────────────────────────── */
.video-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

/* ── Tooltip ───────────────────────────────────────────────── */
.help-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.help-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.tooltip-panel {
  position: fixed;
  bottom: 72px;
  right: 28px;
  z-index: 99;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 48px rgba(26,26,24,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.help-btn:hover  .tooltip-panel,
.tooltip-panel:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.help-tooltip h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.help-tooltip p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.help-tooltip p:last-child { margin-bottom: 0; }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.6s 0.2s ease both;
  transition: border-color 0.3s;
}

.card:focus-within {
   border-color: rgba(26,26,24,0.2);
   box-shadow: 0 4px 24px rgba(26,26,24,0.08);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}

.card-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.right-col {
  align-self: center;
}

/* ── Form fields ───────────────────────────────────────────── */
.field {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.field:last-of-type { border-bottom: none; }
.field:focus-within { background: var(--surface-2); }

.field-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 20px;
  min-width: 88px;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
  user-select: none;
}

.field:focus-within .field-label { color: var(--accent); }

.field input,
.field textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  padding: 16px 20px;
  resize: none;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field textarea {
  min-height: 240px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.card-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  letter-spacing: 0.03em;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-ghost:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 500;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #3a7336;
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn svg { flex-shrink: 0; }

/* ── Status box ── */
#statusBox {
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100%  8px);
}

#statusBox.success,
#statusBox.error {
  max-height: 80px;
  padding: 12px 16px;
  opacity: 1;
  animation: statusReveal 0.3s ease both;
}

#statusBox.success {
  background: rgba(42,92,69,0.1);
  color: var(--accent);
  border: 1px solid rgba(42,92,69,0.22);
}

#statusBox.error {
  background: rgba(139,46,46,0.08);
  color: var(--red);
  border: 1px solid rgba(139,46,46,0.18);
}

#statusBox a {
  color: inherit;
  font-weight: 500;
  text-underline-offset: 2px;
}

@keyframes statusReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Category badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
}

.badge-finance  { background: rgba(30,61,110,0.1);  color: var(--blue); }
.badge-travel   { background: rgba(42,92,69,0.1);   color: var(--accent); }
.badge-calendar { background: rgba(139,96,32,0.1);  color: #8b6020; }
.badge-junk     { background: rgba(139,46,46,0.1);  color: var(--red); }
.badge-general  { background: rgba(26,26,24,0.06);  color: var(--text-muted); }
.badge-urgent   { background: rgba(139,46,46,0.1);  color: var(--red); border: 1px solid rgba(139,46,46,0.2); }

/* ── Footer note ───────────────────────────────────────────── */
.footer-note {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  animation: fadeUp 0.6s 0.3s ease both;
}

.footer-note a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.footer-note a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .layout        { grid-template-columns: 1fr; }
  .left-col      { position: static; }
  .how-it-works  { grid-template-columns: 1fr; }
  .card-footer   { flex-direction: column-reverse; align-items: stretch; }
  .btn           { justify-content: center; }
  .field-label   { min-width: 72px; font-size: 10px; }
}
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Background grain ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 5%, rgba(42,92,69,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 90%, rgba(42,92,69,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svgxml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 32px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.left-col {
  position: sticky;
  top: 40px;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

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

.subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 540px;
}

/* ── How it works ──────────────────────────────────────────── */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-number {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.step-icon {
  font-size: 20px;
  display: block;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.step-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── View toggle buttons ─────────────────────────────────── */
.content-toggle-area {
  animation: fadeUp 0.6s 0.1s ease both;
}

.content-toggle-area .how-it-works {
  animation: none;
}

.view-toggle {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.toggle-btn {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.toggle-btn:hover {
  color: var(--text-muted);
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.toggle-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.toggle-btn.active:hover {
  background: #3a7336;
  border-color: #3a7336;
}

/* ── Video container ──────────────────────────────────────── */
.video-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

/* ── Tooltip ───────────────────────────────────────────────── */
.help-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.help-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.tooltip-panel {
  position: fixed;
  bottom: 72px;
  right: 28px;
  z-index: 99;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 48px rgba(26,26,24,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.help-btn:hover  .tooltip-panel,
.tooltip-panel:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.help-tooltip h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.help-tooltip p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.help-tooltip p:last-child { margin-bottom: 0; }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.6s 0.2s ease both;
  transition: border-color 0.3s;
}

.card:focus-within {
  border-color: rgba(42,92,69,0.35);
  box-shadow: 0 0 0 1px rgba(42,92,69,0.08), 0 20px 60px rgba(26,26,24,0.08);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}

.card-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.right-col {
  align-self: center;
}

/* ── Form fields ───────────────────────────────────────────── */
.field {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.field:last-of-type { border-bottom: none; }
.field:focus-within { background: var(--surface-2); }

.field-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 20px;
  min-width: 88px;
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
  user-select: none;
}

.field:focus-within .field-label { color: var(--accent); }

.field input,
.field textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  padding: 16px 20px;
  resize: none;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field textarea {
  min-height: 240px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.card-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  letter-spacing: 0.03em;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-ghost:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 500;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #3a7336;
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn svg { flex-shrink: 0; }

/* ── Status box ── */
#statusBox {
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100%  8px);
}

#statusBox.success,
#statusBox.error {
  max-height: 80px;
  padding: 12px 16px;
  opacity: 1;
  animation: statusReveal 0.3s ease both;
}

#statusBox.success {
  background: rgba(42,92,69,0.1);
  color: var(--accent);
  border: 1px solid rgba(42,92,69,0.22);
}

#statusBox.error {
  background: rgba(139,46,46,0.08);
  color: var(--red);
  border: 1px solid rgba(139,46,46,0.18);
}

#statusBox a {
  color: inherit;
  font-weight: 500;
  text-underline-offset: 2px;
}

@keyframes statusReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Category badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
}

.badge-finance  { background: rgba(30,61,110,0.1);  color: var(--blue); }
.badge-travel   { background: rgba(42,92,69,0.1);   color: var(--accent); }
.badge-calendar { background: rgba(139,96,32,0.1);  color: #8b6020; }
.badge-junk     { background: rgba(139,46,46,0.1);  color: var(--red); }
.badge-general  { background: rgba(26,26,24,0.06);  color: var(--text-muted); }
.badge-urgent   { background: rgba(139,46,46,0.1);  color: var(--red); border: 1px solid rgba(139,46,46,0.2); }

/* ── Footer note ───────────────────────────────────────────── */
.footer-note {
  margin-top: 36px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  animation: fadeUp 0.6s 0.3s ease both;
}

.footer-note a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.footer-note a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .layout        { grid-template-columns: 1fr; }
  .left-col      { position: static; }
  .how-it-works  { grid-template-columns: 1fr; }
  .card-footer   { flex-direction: column-reverse; align-items: stretch; }
  .btn           { justify-content: center; }
  .field-label   { min-width: 72px; font-size: 10px; }
}