/* Daily Byte — shadcn/ui design system, hand-ported to plain CSS.
 *
 * The site has no build step, so instead of Tailwind + the shadcn CLI this file
 * implements the same thing by hand: shadcn's semantic token block (identical
 * variable names, so a theme copied from ui.shadcn.com maps one-to-one) plus the
 * component recipes the pages actually use — button, badge, card, accordion,
 * separator.
 *
 * The palette is the "Orange" spec from the app's own theme gallery
 * (mobile/src/theme/themes.ts): Tailwind's stone ramp as the neutral, orange as
 * the single saturated color. Dark is the default, matching the app; the toggle
 * in the nav flips :root[data-theme].
 */

/* ---------- Tokens ---------- */
:root,
:root[data-theme="dark"] {
  --background: #0c0a09;
  --foreground: #fafaf9;

  --card: #1c1917;
  --card-foreground: #fafaf9;

  --popover: #1c1917;
  --popover-foreground: #fafaf9;

  --primary: #f97316;
  --primary-foreground: #fff7ed;

  --secondary: #292524;
  --secondary-foreground: #fafaf9;

  --muted: #292524;
  --muted-foreground: #a8a29e;

  --accent: #292524;
  --accent-foreground: #fafaf9;

  --destructive: #ff6467;
  --destructive-foreground: #ffffff;

  /* Translucent in dark mode so borders sit *on* the surface rather than
     reading as another opaque band — what shadcn switched to. */
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.15);
  --ring: #f97316;

  --shadow-color: 0 0 0;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --background: #ffffff;
  --foreground: #0c0a09;

  --card: #ffffff;
  --card-foreground: #0c0a09;

  --popover: #ffffff;
  --popover-foreground: #0c0a09;

  --primary: #ea580c;
  --primary-foreground: #fff7ed;

  --secondary: #f5f5f4;
  --secondary-foreground: #1c1917;

  --muted: #f5f5f4;
  --muted-foreground: #78716c;

  --accent: #f5f5f4;
  --accent-foreground: #1c1917;

  --destructive: #e7000b;
  --destructive-foreground: #ffffff;

  --border: #e7e5e4;
  --input: #e7e5e4;
  --ring: #ea580c;

  --shadow-color: 28 25 23;
  color-scheme: light;
}

:root {
  /* shadcn's radius scale: one base, three derivations. */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --shadow-sm: 0 1px 2px 0 rgb(var(--shadow-color) / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(var(--shadow-color) / 0.1),
    0 2px 4px -2px rgb(var(--shadow-color) / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(var(--shadow-color) / 0.1),
    0 4px 6px -4px rgb(var(--shadow-color) / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(var(--shadow-color) / 0.12),
    0 8px 10px -6px rgb(var(--shadow-color) / 0.12);

  --maxw: 1120px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  border-color: var(--border);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
code,
kbd,
pre {
  font-family: var(--font-mono);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
/* Kept as a hook from the previous design; in a shadcn palette the accent is a
   flat color, not a gradient. */
.grad-text {
  color: var(--primary);
}
.text-muted {
  color: var(--muted-foreground);
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.btn-icon {
  width: 36px;
  padding: 0;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--secondary) 80%, transparent);
}
.btn-outline {
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.badge-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.badge-outline {
  border-color: var(--border);
  color: var(--foreground);
}

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
.card-description {
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 0;
}

/* ---------- Separator ---------- */
.separator {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links > a:not(.btn) {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links > a:not(.btn):hover {
  color: var(--foreground);
  background: var(--accent);
}
@media (max-width: 780px) {
  .nav-links > a:not(.btn) {
    display: none;
  }
}

/* Theme toggle — the site's small echo of the app's theme picker. */
.theme-toggle .sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}
:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.tagpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}
.tagpill b {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 5.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.hero .lede {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-foreground);
  font-size: 13px;
}
.trust .stars {
  color: var(--primary);
  letter-spacing: 2px;
}

/* Hero card stack — a shadcn card, plus a second one peeking out behind it. */
.card-stack {
  position: relative;
  padding: 10px;
}
.card-stack::before {
  content: "";
  position: absolute;
  inset: -40px -30px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 22%, transparent),
    transparent 68%
  );
  z-index: 0;
}
.byte-card {
  position: relative;
  z-index: 1;
  gap: 0;
  box-shadow: var(--shadow-xl);
}
.byte-card.behind {
  position: absolute;
  inset: 22px 22px auto;
  transform: rotate(-3deg) translateY(14px) scale(0.96);
  opacity: 0.55;
  z-index: 0;
  box-shadow: none;
}
.byte-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.byte-card .date {
  font-size: 11.5px;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.byte-card h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.byte-card p {
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 0 0 16px;
}
.byte-card code {
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  font-size: 0.9em;
}
.byte-card .foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 13px;
}
.byte-card .foot .go {
  margin-left: auto;
  font-weight: 500;
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero .lede {
    max-width: none;
  }
  .card-stack {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------- Topic band ---------- */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  padding: 22px 0;
  margin-top: 32px;
}
.band .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 14px;
}
.band b {
  color: var(--foreground);
  font-weight: 500;
}
.band .sep {
  color: var(--primary);
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}
.head {
  max-width: 660px;
  margin: 0 auto 48px;
  text-align: center;
}
.head .kick {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.head h2 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0;
}
.head p {
  color: var(--muted-foreground);
  font-size: 17px;
  margin: 0;
}

/* Steps */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tl {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.tl .n {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.tl h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 16px 0 8px;
}
.tl p {
  color: var(--muted-foreground);
  font-size: 14.5px;
  margin: 0;
}
@media (max-width: 820px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* Features */
.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feat {
  gap: 0;
  padding: 28px 26px;
}
.feat .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--muted);
  font-size: 20px;
  margin-bottom: 16px;
}
.feat h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.feat p {
  color: var(--muted-foreground);
  font-size: 14.5px;
  margin: 0;
}
@media (max-width: 760px) {
  .feat-list {
    grid-template-columns: 1fr;
  }
}

/* Quote / promise */
.promise {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promise .container {
  text-align: center;
  max-width: 860px;
}
.promise blockquote {
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0;
}
.promise .by {
  color: var(--muted-foreground);
  margin-top: 20px;
  font-size: 14px;
}

/* FAQ — shadcn accordion, built on <details> so it works without JS. */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s ease;
}
.faq summary:hover {
  color: var(--primary);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details p {
  color: var(--muted-foreground);
  font-size: 15px;
  margin: 0 2px 18px;
  padding-right: 32px;
}

/* CTA */
.cta {
  padding-bottom: 88px;
}
.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.cta-box p {
  font-size: 17px;
  color: var(--muted-foreground);
  margin: 0 0 26px;
}
.cta-soon {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot .fbrand p {
  color: var(--muted-foreground);
  font-size: 14px;
  max-width: 260px;
  margin: 12px 0 0;
}
.foot-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.foot-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin: 0 0 12px;
}
.foot-col a {
  display: block;
  color: var(--muted-foreground);
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.foot-col a:hover {
  color: var(--foreground);
}
.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-foreground);
  font-size: 13px;
}
.foot-bottom a:hover {
  color: var(--foreground);
}

/* ---------- Legal / content pages ---------- */
.page {
  padding: 48px 0 80px;
}
.page .container {
  max-width: 760px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  transition: color 0.15s ease;
}
.back-link:hover {
  color: var(--foreground);
}
.page h1 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 8px;
}
.page .updated {
  color: var(--muted-foreground);
  font-size: 14px;
  margin-bottom: 36px;
}
.page h2 {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.page h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 26px 0 8px;
}
.page p,
.page li {
  color: var(--muted-foreground);
  font-size: 15.5px;
}
.page strong {
  color: var(--foreground);
  font-weight: 600;
}
.page ul {
  padding-left: 20px;
}
.page li {
  margin-bottom: 8px;
}
.page a.inline {
  color: var(--primary);
  font-weight: 500;
}
.page a.inline:hover {
  text-decoration: underline;
}
.page blockquote {
  border-left: 2px solid var(--primary);
  padding: 12px 18px;
  margin: 22px 0;
  color: var(--muted-foreground);
  background: var(--muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.contact-card {
  margin: 8px 0 32px;
}
.contact-card p {
  color: var(--muted-foreground);
  font-size: 15.5px;
  margin: 0;
}
.contact-card a {
  color: var(--primary);
  font-weight: 600;
}
