/* 5-Daily (https://5-daily.app) — Independent SaaS Design System */

:root {
  --bg: #0b1120;
  --surface: #111a2e;
  --card: #151f32;
  --card-hover: #1a2740;
  --border: #263554;
  --border-strong: #344870;
  --primary: #3b6ef6;
  --primary-hover: #2557e0;
  --accent: #3ce65d;
  --yellow: #fde067;
  --link: #93c5fd;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

strong, h1, h2, h3, h4, .btn, .tab-btn, .price-amount {
  font-weight: 600;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-domain {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.header-nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.header-nav a.language {
  color: var(--link);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.header-nav a.language:hover {
  border-color: var(--link);
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 0 52px;
}

.hero .product-logo {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-lead {
  font-size: 17.5px;
  color: var(--text-soft);
  max-width: 740px;
  margin: 0 auto 30px;
}

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

.hero-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* Delivery Channels Strip */
.channel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.channel-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.channel-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--yellow);
  margin-bottom: 4px;
}

.channel-item span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59, 110, 246, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #08101f;
}

.btn-accent:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--card-hover);
  border-color: var(--link);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Section Headings */
.section-block {
  padding: 54px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 28px;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 700px;
}

.section-header.center p {
  margin: 0 auto;
}

/* Live Sample Digest Reader */
.sample-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab-btn[aria-selected="true"] {
  background: rgba(59, 110, 246, 0.18);
  color: var(--text);
  border-color: var(--primary);
}

.sample-body {
  padding: 28px;
}

.sample-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.sample-meta-bar strong {
  color: var(--yellow);
  font-size: 15.5px;
}

.sample-summary {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.sample-summary h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sample-summary ul {
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.sample-summary li {
  margin-bottom: 6px;
}

.sample-items {
  display: grid;
  gap: 16px;
}

.signal-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 17, 32, 0.48);
}

.signal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.signal-head h4 {
  font-size: 16px;
  color: var(--text);
}

.signal-tag {
  font-size: 12px;
  color: var(--yellow);
  background: rgba(253, 224, 103, 0.11);
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.signal-item p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.signal-impact {
  font-size: 14px;
  color: var(--muted);
}

.signal-impact strong {
  color: var(--text);
}

.signal-source {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.sample-footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: var(--radius-lg);
}

.feature-card h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
  color: var(--yellow);
}

.feature-card p {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* Notice Blocks */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 28px 0;
  background: var(--card);
}

.notice h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.notice p,
.notice li {
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.notice ul,
.notice ol {
  padding-left: 20px;
  margin-top: 10px;
}

/* Source Registry Table */
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.source-table th,
.source-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.source-table th {
  color: var(--yellow);
  font-weight: 600;
  background: var(--surface);
}

.source-table td {
  color: var(--text-soft);
}

/* Pricing: Balanced 3 + 2 centered grid for 5 verticals + full-width All-Access spotlight */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  text-align: left;
}

.price-card {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.all-access-card {
  margin-top: 22px;
  background: linear-gradient(135deg, #162238 0%, #121c30 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  text-align: left;
}

.all-access-perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 16px;
}

.all-access-perks li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.all-access-perks li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

.all-access-cta {
  min-width: 225px;
  text-align: right;
}

.all-access-cta .price-amount {
  margin: 0 0 14px;
}

.free-preview-bar {
  margin-top: 16px;
  padding: 18px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-size: 14.5px;
  color: var(--text-soft);
}

.free-preview-bar > span {
  flex: 1 1 340px;
}

.popular-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--accent);
  color: #0b1120;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 999px;
}

.price-card h3,
.all-access-card h3 {
  font-size: 18.5px;
  margin-bottom: 6px;
  color: var(--text);
}

.price-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  min-height: 42px;
}

.all-access-card .price-subtitle {
  min-height: auto;
  font-size: 14.5px;
}

.price-amount {
  font-size: 34px;
  line-height: 1.15;
  margin: 14px 0 18px;
  color: var(--text);
}

.price-amount span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.price-list {
  list-style: none;
  margin-bottom: 22px;
  flex-grow: 1;
}

.price-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.price-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-soft);
}

/* Legal pages */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 24px 0 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.legal-section {
  padding: 40px 0;
}

.legal-box {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.legal-box:first-of-type {
  border-top: none;
}

.legal-box h2 {
  color: var(--yellow);
  font-size: 20px;
  margin-bottom: 12px;
}

.legal-box p,
.legal-box li {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 15px;
}

.legal-box ul {
  padding-left: 22px;
}

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Footer */
footer {
  padding: 24px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

footer p + p {
  margin-top: 10px;
}

code {
  background: var(--surface);
  color: var(--yellow);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.92em;
}

/* Native Dialog */
dialog {
  margin: auto;
  width: min(500px, calc(100% - 32px));
  padding: 28px;
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

dialog::backdrop {
  background: rgba(11, 17, 32, 0.85);
}

dialog h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--yellow);
}

dialog p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .channel-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-card {
    flex: 1 1 calc((100% - 20px) / 2);
  }
  .all-access-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .all-access-cta {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }
  .hero {
    padding: 40px 0 36px;
  }
  .channel-strip {
    grid-template-columns: 1fr;
  }
  .sample-body {
    padding: 18px;
  }
  .price-card {
    flex: 1 1 100%;
    min-width: 0;
  }
  .all-access-card {
    padding: 24px 20px;
  }
  .all-access-perks {
    grid-template-columns: 1fr;
  }
  .free-preview-bar {
    padding: 16px 18px;
  }
}
