/* ==========================================================================
   Herzensworte — Hochzeitsreden Generator
   Editorial wedding aesthetic: champagne paper, rosewood & antique gold,
   Cormorant Garamond display serif + Jost body + Pinyon Script flourishes.
   ========================================================================== */

:root {
  --cream:      #FAF5EC;
  --paper:      #FFFDF8;
  --ink:        #3A322B;
  --ink-soft:   #7C6F62;
  --rose:       #A65D52;
  --rose-deep:  #8A4A41;
  --rose-tint:  #F3E4DF;
  --gold:       #B08D57;
  --gold-soft:  #DCCBA8;
  --gold-tint:  #F4ECDD;
  --line:       #E9DFCE;
  --success:    #5F7A5A;
  --error:      #A14E42;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Avenir Next', sans-serif;
  --font-script:  'Pinyon Script', cursive;

  --bg-glow-1:  rgba(176, 141, 87, 0.10);
  --bg-glow-2:  rgba(166, 93, 82, 0.07);

  --shadow-soft: 0 10px 40px -12px rgba(58, 50, 43, 0.14);
  --shadow-card: 0 4px 24px -8px rgba(58, 50, 43, 0.10);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -5%, var(--bg-glow-1), transparent 60%),
    radial-gradient(ellipse 700px 450px at 8% 12%, var(--bg-glow-2), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rose-tint); color: var(--rose-deep); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

a { color: var(--rose); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-deep); }

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

/* Umbrella bar — slim brand switcher above the app header. Not sticky:
   scrolls away, the vertical's own header stays. */
.umbrella-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.umbrella-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
}
.umbrella-home {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
}
.umbrella-home:hover { color: var(--ink); }
.umbrella-nav { display: flex; gap: 18px; }
.umbrella-nav a {
  font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.umbrella-nav a:hover { color: var(--rose); }
.umbrella-nav a.is-active {
  color: var(--rose);
  border-bottom: 1px solid var(--rose);
  padding-bottom: 2px;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-family: var(--font-script); font-size: 26px; line-height: 1;
  color: var(--paper);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  border-radius: 50%;
  padding-top: 4px;
  box-shadow: 0 2px 12px -2px rgba(166, 93, 82, 0.5);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 19px; padding-top: 3px; }

.brand-icon { display: block; width: 40px; height: 40px; }
.brand-icon.small { width: 30px; height: 30px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: 0.02em;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.main-nav a:hover { color: var(--rose); }
.main-nav .nav-muted { color: var(--ink-soft); }
.nav-user { font-size: 13px; letter-spacing: 0.08em; color: var(--ink-soft); }

.nav-credits {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold) !important;
}
.nav-credits strong { font-weight: 600; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all .25s ease;
}

.btn-primary {
  color: var(--paper);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  box-shadow: 0 6px 20px -6px rgba(138, 74, 65, 0.45);
}
.btn-primary:hover {
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(138, 74, 65, 0.55);
}

.btn-outline { color: var(--rose-deep); border-color: var(--rose); background: transparent; }
.btn-outline:hover { background: var(--rose-tint); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-large { padding: 17px 42px; font-size: 14px; }
.btn-small { padding: 9px 20px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

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

.hero { position: relative; overflow: hidden; padding: 110px 0 130px; text-align: center; }

.hero-ornament {
  position: absolute; width: 480px; height: 480px;
  border: 1px solid var(--gold-soft); border-radius: 50%;
  opacity: .5; pointer-events: none;
}
.hero-ornament::after {
  content: ''; position: absolute; inset: 28px;
  border: 1px solid var(--line); border-radius: 50%;
}
.hero-ornament-left  { left: -240px; top: -120px; }
.hero-ornament-right { right: -260px; bottom: -200px; border-color: var(--rose-tint); }

.hero-eyebrow, .section-eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(54px, 9vw, 104px);
  font-weight: 500;
  margin-bottom: 28px;
}

.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--rose);
  font-size: 1.12em;
}

.hero-sub {
  max-width: 560px; margin: 0 auto 40px;
  font-size: 19px; color: var(--ink-soft);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 36px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft);
}

/* Staggered page-load reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .9s cubic-bezier(.22,.8,.3,1) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .34s; } .reveal.d4 { animation-delay: .48s; }
.reveal.d5 { animation-delay: .62s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.page-section { padding: 56px 0 96px; }

.section-title {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 56px;
}
.section .section-eyebrow + .section-title { margin-top: -6px; }
.section-subtitle { font-size: 28px; margin: 72px 0 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.step {
  position: relative; padding: 36px 30px 32px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.step-number {
  position: absolute; top: -22px; left: 28px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--gold);
  background: var(--paper);
  border: 1px solid var(--gold-soft); border-radius: 50%;
}
.step h3 { font-size: 23px; margin: 8px 0 12px; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* Role cards */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.role-card {
  padding: 30px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--cream), var(--paper));
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--gold-soft); }
.role-card h3 { font-size: 21px; margin-bottom: 10px; }
.role-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; align-items: stretch;
}

.price-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 42px 34px 36px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.price-card.featured { border-color: var(--gold); border-width: 1.5px; transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper);
  background: var(--gold);
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 { font-size: 24px; }
.price-amount { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--rose-deep); }
.price-desc { flex: 1; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }

.pricing-note { margin-top: 36px; text-align: center; font-size: 14px; color: var(--ink-soft); }

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

.cta-section {
  background:
    radial-gradient(ellipse 600px 300px at 50% 120%, rgba(176, 141, 87, 0.16), transparent 70%),
    var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-title { font-size: clamp(36px, 6vw, 58px); margin-bottom: 36px; }

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-section { display: grid; place-items: center; min-height: 70vh; padding: 64px 24px; }

.auth-card {
  width: 100%; max-width: 440px;
  padding: 48px 44px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.auth-title { font-size: 36px; margin-bottom: 28px; }
.auth-logo { display: block; margin: -8px auto 6px; }
.auth-card .form { text-align: left; }
.auth-switch { margin-top: 26px; font-size: 14.5px; color: var(--ink-soft); }

/* ==========================================================================
   Forms
   ========================================================================== */

.form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span {
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field > span em { color: var(--rose); font-style: normal; }
.field > span small { text-transform: none; letter-spacing: 0; font-weight: 300; }

.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 54px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.14);
  background: var(--paper);
}
.field input::placeholder, .field textarea::placeholder { color: #B9AC9C; }

/* align-items: end → inputs line up even when one label wraps to two lines */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }

.form-card {
  display: flex; flex-direction: column; gap: 20px;
  padding: 36px 34px 32px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.form-card legend {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  padding: 0 14px; margin-left: -14px;
}
.form-hint { font-size: 14px; color: var(--ink-soft); }
.form-hint.center { text-align: center; margin-top: 18px; }

.wizard-form { gap: 40px; margin-top: 36px; }
.wizard-submit { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* Tone selector */
/* grid-auto-rows: 1fr → every tone card equal height, not just per row */
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
/* label is the grid item — make it flex so the card stretches to row height */
.tone-option { display: flex; }
.tone-option input { position: absolute; opacity: 0; }
.tone-card {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream);
  cursor: pointer;
  transition: all .2s ease;
}
.tone-card strong { font-weight: 500; font-size: 16px; }
.tone-card small { font-size: 13px; color: var(--ink-soft); }
.tone-option input:checked + .tone-card {
  border-color: var(--rose);
  background: var(--rose-tint);
  box-shadow: 0 0 0 1px var(--rose);
}
.tone-option input:focus-visible + .tone-card { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ==========================================================================
   Dashboard
   ========================================================================== */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.page-title { font-size: clamp(34px, 5vw, 46px); }
.page-head-actions { display: flex; align-items: center; gap: 16px; }

.credit-pill {
  padding: 10px 22px;
  font-size: 14px; color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft); border-radius: 999px;
}
.credit-pill strong { font-size: 17px; font-weight: 600; }

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

.speech-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.speech-row:hover { transform: translateX(4px); border-color: var(--gold-soft); box-shadow: var(--shadow-card); color: var(--ink); }
.speech-row h3 { font-size: 22px; margin-bottom: 4px; }
.speech-row-meta { font-size: 13.5px; color: var(--ink-soft); }

.status-chip {
  flex-shrink: 0;
  padding: 5px 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.status-done       { color: var(--success); background: #EEF3EC; }
.status-pending    { color: var(--gold); background: var(--gold-tint); }
.status-generating { color: var(--rose); background: var(--rose-tint); }
.status-failed     { color: var(--error); background: #F6E8E5; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 90px 24px;
  background: var(--paper);
  border: 1px dashed var(--gold-soft); border-radius: var(--radius);
}
.empty-ornament { font-size: 30px; color: var(--gold); margin-bottom: 18px; }
.empty-state h2 { font-size: 30px; margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 28px; }
.empty-hint { margin-top: 20px; font-size: 14px; }

/* ==========================================================================
   Speech view
   ========================================================================== */

.back-link {
  display: inline-block; margin-bottom: 28px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.back-link:hover { color: var(--rose); }

.speech-head { margin-bottom: 36px; }
.speech-head .page-title { margin-bottom: 8px; }

.speech-paper {
  position: relative;
  padding: 64px 60px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.speech-paper::before {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid var(--gold-tint);
  border-radius: 2px;
  pointer-events: none;
}
.speech-paper-ornament {
  text-align: center;
  color: var(--gold);
  margin-bottom: 28px;
}
.speech-paper-ornament .brand-heart {
  display: inline-block;
  width: 46px; height: auto;
}
.speech-content {
  font-family: var(--font-display);
  font-size: 20.5px; font-weight: 500; line-height: 1.8;
}

.speech-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}

/* Generate box */
.generate-box {
  text-align: center;
  padding: 80px 32px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.generate-box h2 { font-size: 32px; margin-bottom: 14px; }
.generate-box p { color: var(--ink-soft); margin-bottom: 30px; }
.generate-error { margin-top: 24px; text-align: left; }

/* Loading animation */
.loading-rings {
  position: relative;
  width: 90px; height: 90px;
  margin: 0 auto 30px;
}
.loading-rings span {
  position: absolute; inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}
.loading-rings span:last-child {
  inset: 14px;
  border-top-color: var(--gold);
  animation-duration: 1s; animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-phrase { font-style: italic; font-family: var(--font-display); font-size: 19px; transition: opacity .4s ease; }

.success-ornament {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  font-size: 34px; color: var(--success);
  border: 1.5px solid var(--success); border-radius: 50%;
  background: #EEF3EC;
}
.lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 32px; }

/* ==========================================================================
   Revision & manual edit
   ========================================================================== */

.inline-form { display: inline; }

.edit-form {
  margin-top: 36px;
  padding: 32px 30px;
  background: var(--paper);
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.edit-form textarea {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.7;
}
.edit-form .speech-actions { margin-top: 20px; }

.revision-box {
  margin-top: 48px;
  padding: 40px 38px;
  background: linear-gradient(160deg, var(--gold-tint), var(--paper));
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
}
.revision-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.revision-head h2 { font-size: 28px; }
.revision-counter {
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  padding: 5px 14px;
  background: var(--paper);
  border: 1px solid var(--gold-soft); border-radius: 999px;
}
.revision-box p { color: var(--ink-soft); margin-bottom: 16px; }
.revision-idle .field { margin-bottom: 16px; }
.revision-loading { text-align: center; padding: 24px 0; }
.revision-loading p { font-style: italic; font-family: var(--font-display); font-size: 18px; }
.revision-exhausted { text-align: center; padding: 8px 0; }

/* Example-speech index cards — equal-height with aligned buttons */
.example-card {
  display: flex; flex-direction: column;
  text-decoration: none; cursor: pointer;
}
.example-card-eyebrow { margin-bottom: 10px; }
.example-card-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.example-card-text {
  color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.6;
  margin: 0 0 18px;
}
.example-card-btn {
  margin-top: auto;          /* pins the button to one baseline across the row */
  align-self: flex-start;
  pointer-events: none;      /* whole card is the link */
}

/* Translation box */
.translate-box {
  margin-top: 28px;
  padding: 40px 38px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.translate-box p { color: var(--ink-soft); margin-bottom: 16px; }
.translate-existing a { font-weight: 500; }
.translate-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.translate-row select {
  flex: 1; min-width: 200px;
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.translate-row select:focus { outline: none; border-color: var(--gold); }
.translate-loading { text-align: center; padding: 24px 0; }
.translate-loading p { font-style: italic; font-family: var(--font-display); font-size: 18px; }

/* Auth extras */
.forgot-link { font-size: 13.5px; text-align: right; margin-top: -10px; }

/* AI consent (DSGVO) */
.consent-box {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
}
.consent-label {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px; line-height: 1.55; color: var(--ink-soft);
  cursor: pointer;
}
.consent-label input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--rose);
}

/* ==========================================================================
   Transactions
   ========================================================================== */

.tx-table {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.tx-row {
  display: grid; grid-template-columns: 190px 1fr auto;
  gap: 16px; align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.tx-row:last-child { border-bottom: none; }
.tx-date { color: var(--ink-soft); font-size: 13.5px; }
.tx-amount { font-weight: 600; font-size: 16px; }
.tx-amount.positive { color: var(--success); }
.tx-amount.negative { color: var(--rose-deep); }

/* ==========================================================================
   Flash messages
   ========================================================================== */

.flash {
  padding: 15px 20px;
  margin: 18px 0;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid;
}
.flash-success { color: var(--success); background: #EEF3EC; border-color: #C7D6C2; }
.flash-error   { color: var(--error); background: #F6E8E5; border-color: #E3C5BE; }
.flash-info    { color: var(--gold); background: var(--gold-tint); border-color: var(--gold-soft); }
.flash a { font-weight: 500; text-decoration: underline; }

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

.site-footer {
  margin-top: 40px;
  padding: 48px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; }
.footer-logo img { display: block; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav-content { gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 720px; }
.footer-nav a { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--rose); }
.footer-note { font-size: 13px; color: var(--ink-soft); }
.heart { color: var(--rose); }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 26px; margin: 36px 0 12px; }
.legal-content p { margin-bottom: 14px; color: var(--ink-soft); }

/* ==========================================================================
   FAQ
   ========================================================================== */

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

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-soft);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  padding: 22px 52px 22px 28px;
  position: relative;
  user-select: none;
  transition: color .2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

/* Gold expand/collapse indicator */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform .2s ease;
}

.faq-item[open] .faq-question::after {
  content: '–';
}

.faq-item[open] .faq-question {
  color: var(--rose-deep);
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 20px 28px 24px;
}

.faq-answer p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
}

.faq-answer a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--rose-deep);
}

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

@media (max-width: 920px) {
  .steps, .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 11px; }
  .nav-user { display: none; }
  .hero { padding: 70px 0 90px; }
  .roles-grid, .field-row, .tone-grid { grid-template-columns: 1fr; }
  .speech-paper { padding: 40px 26px; }
  .speech-content { font-size: 18.5px; }
  .tx-row { grid-template-columns: 1fr auto; }
  .tx-date { grid-column: 1 / -1; }
  .header-inner { flex-direction: column; height: auto; padding: 14px 0; gap: 10px; }
  .site-header { position: static; }
}
