/* ==========================================================================
   Trywydd 4.0 marketing site — brand layer
   Loaded after app.css and style.css on every page. Re-points the shared
   custom properties at the brand style guide palette (docs/brand-style-guide.md):
   charcoal and card charcoal as the base, trail gold for the thread and every
   accent, guiding star for highlights, warm cream text, muted taupe secondary.
   No pure white or pure black anywhere.
   ========================================================================== */

:root {
  --bg: #0A0A0A;          /* charcoal black */
  --panel: #1A1512;       /* card charcoal */
  --panel2: #211B17;
  --field: #241D18;
  --line: #2C241E;
  --ink: #E8DDC8;         /* warm cream */
  --muted: #8A8074;       /* muted taupe */
  --faint: #15110E;
  --jade: #E6A63C;        /* trail gold: every former jade accent becomes the thread */
  --jadeD: #C98C2A;
  --gold: #F0D9A8;        /* guiding star */

  --color-bg: var(--bg);
  --color-card: var(--panel);
  --color-card-border: var(--line);
  --color-accent: #E6A63C;
  --color-highlight: #F0D9A8;
  --color-text: var(--ink);
  --color-text-muted: var(--muted);

  /* The five area accents from the guide. Gold is never an area color. */
  --area-red: #D9483C;
  --area-green: #78D25A;
  --area-teal: #14C8AA;
  --area-blue: #327FC8;
  --area-purple: #963CA0;
}

html, body { background: var(--bg); color: var(--ink); }

h1, h2 { color: var(--ink); font-weight: 600; }
h3 { color: var(--ink); font-weight: 600; }

/* Primary button: trail gold. Charcoal text rather than cream, because cream
   on gold falls well short of readable contrast at button sizes. */
.btn.primary {
  background: #E6A63C;
  color: #1A1512;
  border: none;
}
a.btn.primary:hover { background: #F0D9A8; color: #1A1512; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #E6A63C;
}
a.btn.ghost:hover { color: #F0D9A8; border-color: #F0D9A8; }
.nav-cta, .nav-cta:hover { color: #1A1512 !important; }

/* ==========================================================================
   Feature rows (homepage, How It Works)
   ========================================================================== */

.feature-list {
  display: grid;
  gap: 5rem;
  margin-top: 3rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .feature { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .feature--flip .feature-media { order: -1; }
}

.feature-copy h3 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.85rem);
  line-height: 1.25;
  margin: 0.35rem 0 0.9rem;
}

.feature-copy p { color: var(--ink); opacity: 0.92; }
.feature-copy p + p { margin-top: 0.8rem; }

.feature-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E6A63C;
}

.feature-media {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* A real screenshot inside a thin charcoal bezel. The capture already carries
   the status bar and home indicator, so the frame is only an edge. */
.shot {
  margin: 0;
  width: 280px;
  max-width: 100%;
}

.shot--sm { width: 220px; }

.shot img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 8px solid #1A1512;
  box-shadow: 0 0 0 1px #2C241E, 0 30px 60px -28px rgba(230, 166, 60, 0.28);
  background: #1A1512;
}

.shot figcaption,
.illus figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
}

.card-shot img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 16px;
  border: 1px solid #2C241E;
}

/* Built-in-HTML illustrations (not screenshots) for the to-do box and the
   area tabs. Drawn in the brand palette so they read as diagrams. */
.illus {
  margin: 0;
  width: 100%;
  max-width: 420px;
}

.illus-panel {
  background: #1A1512;
  border: 1px solid #2C241E;
  border-radius: 18px;
  padding: 1.25rem;
}

.qa-box {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.qa-input {
  flex: 1;
  background: #0A0A0A;
  border: 1px solid #3A3028;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.qa-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  background: #E6A63C;
  vertical-align: -0.15em;
  margin-left: 2px;
}

.qa-add {
  background: #E6A63C;
  color: #1A1512;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

.qa-read {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: #F0D9A8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qa-read::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E6A63C;
}

.qa-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #2C241E;
  display: grid;
  gap: 0.65rem;
}

.qa-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.qa-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--muted);
  flex: none;
}

.qa-meta {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

.qa-area {
  margin-left: auto;
  font-size: 0.72rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}

.tab-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  font-size: 0.85rem;
  border: 1px solid #3A3028;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tab b { font-weight: 600; color: var(--ink); }

.tab.is-on {
  border-color: #78D25A;
  color: var(--ink);
  background: rgba(120, 210, 90, 0.08);
}

.tab .area-dot { width: 8px; height: 8px; }

/* Hero with the Today screen beside it on wide screens. */
.hero-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-split { grid-template-columns: 1.25fr 1fr; }
}

.hero-split .shot { justify-self: center; }

.price-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.new-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1A1512;
  background: #F0D9A8;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 1rem;
}

.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  justify-items: center;
}

@media (min-width: 760px) { .screens-grid { grid-template-columns: repeat(3, 1fr); } }

.screens-grid .screen-item { max-width: 280px; }
.screens-grid h3 { margin: 1.25rem 0 0.4rem; font-size: 1.1rem; }
.screens-grid p { color: var(--muted); font-size: 0.95rem; }
