/* ==========================================================================
   Daily Tech Wins — styles
   Brand tokens live in :root. Swap colors/fonts here.
   ========================================================================== */

@font-face {
  font-family: "Anton";
  src: url("/fonts/Anton-Regular.woff2") format("woff2"),
       url("/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/ArchivoBlack-Regular.woff2") format("woff2"),
       url("/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Brand colors */
  --c-yellow: #FFD60A;
  --c-yellow-soft: #FFF3B0;
  --c-blue: #1E6BFF;
  --c-blue-dark: #1453CC;
  --c-black: #0A0A0A;
  --c-navy: #163C73;
  --c-red: #E5484D;          /* small accents only */
  --c-white: #FFFFFF;
  --c-paper: #FFFDF5;
  --c-muted: #3A3F4A;        /* body-muted text on light bg (10:1) */

  /* Semantic */
  --bg: var(--c-paper);
  --text: var(--c-black);
  --focus: var(--c-blue);

  /* Fonts */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-sub: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 4px 4px 0 var(--c-black);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue-dark); }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .4em; }
h3 { font-family: var(--font-sub); font-weight: 400; line-height: 1.2; margin: 0 0 .35em; }
h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Focus states */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.signup-card :focus-visible, .site-footer :focus-visible, .next-strip :focus-visible { outline-color: var(--c-yellow); }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--c-black); color: var(--c-yellow); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-sub); font-size: 1rem; line-height: 1.1; text-decoration: none;
  padding: 15px 22px; min-height: 52px; border-radius: var(--radius-sm);
  border: 2px solid var(--c-black); cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--c-black); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c-black); }
.btn-blue { background: var(--c-blue); color: var(--c-white); }
.btn-blue:hover { background: var(--c-blue-dark); }
.btn-yellow { background: var(--c-yellow); color: var(--c-black); }
.btn-dark { background: var(--c-black); color: var(--c-yellow); }
.btn-small { padding: 9px 14px; min-height: 42px; font-size: .9rem; box-shadow: 3px 3px 0 var(--c-blue); }
.btn-small:hover { box-shadow: 4px 4px 0 var(--c-blue); }

/* Header */
.site-header { background: var(--c-yellow); border-bottom: 3px solid var(--c-black); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-black); text-decoration: none; font-family: var(--font-display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--c-black); }

/* Hero */
.hero {
  background: var(--c-yellow);
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 18px, transparent 18px 44px);
  border-bottom: 3px solid var(--c-black);
  padding: 44px 0 56px;
}
.hero-inner { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-sub); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--c-black); color: var(--c-yellow); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }
.hero h1 { font-size: clamp(3.4rem, 15vw, 6.4rem); margin-bottom: .15em; }
.subhead {
  font-family: var(--font-sub); font-size: clamp(1.25rem, 4.6vw, 1.75rem); line-height: 1.2; margin-bottom: .7em;
}
.subhead-mark { background: var(--c-blue); color: var(--c-white); padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 1.1rem; max-width: 34em; color: #1d1d1d; margin-bottom: 24px; }
.hero-art { display: none; justify-self: center; }
.hero-art img { width: 300px; height: 300px; border-radius: 28px; border: 3px solid var(--c-black); box-shadow: 10px 10px 0 var(--c-blue); transform: rotate(3deg); }

/* Sections */
.section { padding: 64px 0; }
.section-sub { font-size: 1.1rem; color: var(--c-muted); max-width: 40em; margin-bottom: 32px; }

/* What you get */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature { background: var(--c-white); border: 2px solid var(--c-black); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature p { margin: 0; color: var(--c-muted); }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--c-yellow); color: var(--c-black); border: 2px solid var(--c-black); margin-bottom: 14px; }
.feature:nth-child(2) .feature-icon { background: var(--c-blue); color: var(--c-white); }
.feature:nth-child(3) .feature-icon { background: var(--c-navy); color: var(--c-yellow); }
.feature h3 { font-size: 1.3rem; }

/* Tips */
.tips { background: var(--c-white); border-top: 3px solid var(--c-black); border-bottom: 3px solid var(--c-black); }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
.card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--c-black);
  background: var(--c-paper); border: 2px solid var(--c-black); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--c-blue); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 45%; border-bottom: 2px solid var(--c-black); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; flex: 1; }
.card-tag { font-family: var(--font-sub); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-blue-dark); }
.card-title { font-family: var(--font-sub); font-size: 1.2rem; line-height: 1.2; }
.card-cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--c-navy); }
.card a:hover .card-cta { text-decoration: underline; }

.next-strip {
  margin-top: 40px; background: var(--c-navy); color: var(--c-white); border: 2px solid var(--c-black);
  border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 4px 4px 0 var(--c-yellow);
}
.next-label { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; color: var(--c-yellow); margin: 0; letter-spacing: .02em; }
.next-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-sub); font-size: 1.05rem; }
.next-list li { display: flex; align-items: center; gap: 12px; }
.next-num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-yellow); color: var(--c-black); font-size: .95rem; }

/* Follow */
.follow { text-align: center; }
.follow .section-sub { margin-left: auto; margin-right: auto; }
.follow-buttons { display: flex; flex-direction: column; gap: 16px; align-items: stretch; max-width: 420px; margin: 0 auto; }
.btn-social { font-size: 1.1rem; }
.btn-youtube { background: var(--c-black); color: var(--c-white); }
.btn-youtube svg { color: var(--c-red); }
.btn-instagram { background: var(--c-blue); color: var(--c-white); }

/* Signup block */
.signup { padding-top: 8px; }
.signup-card {
  background: var(--c-black); color: var(--c-white); border-radius: 24px; padding: 40px 22px;
  background-image: radial-gradient(circle at 100% 0, rgba(30,107,255,.45), transparent 55%);
  box-shadow: 8px 8px 0 var(--c-yellow);
}
.signup-card h2 { color: var(--c-yellow); font-size: clamp(2.2rem, 8vw, 3.6rem); max-width: 20em; }
.signup-copy { font-size: 1.15rem; max-width: 34em; color: #F2F2F2; margin-bottom: 24px; }
.signup-card .btn { box-shadow: 4px 4px 0 var(--c-blue); border-color: var(--c-yellow); }
.signup-card .btn:hover { box-shadow: 5px 5px 0 var(--c-blue); }

/* Footer */
.site-footer { margin-top: 64px; background: var(--c-navy); color: var(--c-white); padding: 28px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.site-footer p { margin: 0; font-family: var(--font-sub); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--c-yellow); font-weight: 600; }

/* Simple content pages (privacy, 404) */
.page { padding: 48px 0 24px; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
.page h2 { font-size: 1.8rem; margin-top: 1.4em; }
.page ul { padding-left: 1.2em; }
.notfound { text-align: center; padding: 72px 0 24px; }
.notfound .big { font-family: var(--font-display); font-size: clamp(6rem, 30vw, 12rem); line-height: 1; color: var(--c-blue); margin: 0; text-shadow: 6px 6px 0 var(--c-yellow); }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .follow-buttons { flex-direction: row; justify-content: center; max-width: none; }
  .follow-buttons .btn { min-width: 200px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 880px) {
  .hero { padding: 72px 0 84px; }
  .hero-inner { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .hero-art { display: block; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .next-strip { flex-direction: row; align-items: center; gap: 28px; }
  .next-list { flex-direction: row; gap: 28px; }
  .signup-card { padding: 56px; }
  .section { padding: 88px 0; }
  .signup { padding-top: 8px; }
}

/* ---------- Visual QA fixes ---------- */
.brand span, .btn-small { white-space: nowrap; }
.signup-card h2 { max-width: 20em; }
.signup { padding-bottom: 0; }
.site-footer { margin-top: 72px; }
@media (max-width: 559px) {
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .btn-small { padding: 8px 12px; font-size: .82rem; min-height: 40px; }
  /* Horizontal cards on phones so tall 9:16 covers don't eat the screen */
  .card a { flex-direction: row; }
  .card img { width: 38%; flex: none; aspect-ratio: 3 / 4; border-bottom: 0; border-right: 2px solid var(--c-black); }
  .card-body { padding: 14px 14px 16px; justify-content: center; }
  .card-title { font-size: 1.05rem; }
  .card-cta { margin-top: 6px; padding-top: 0; }
}
@media (max-width: 359px) {
  .header-inner .btn-small { display: none; }
}
/* Keep footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- Launch: no-signup version ---------- */
.hero-actions { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.btn-white { background: var(--c-white); color: var(--c-black); }
.soon-badge {
  display: inline-block; font-family: var(--font-sub); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--c-yellow); color: var(--c-black); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.soon-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }
.signup-copy { margin-bottom: 10px; }
.signup-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; max-width: 40em; font-size: 1.08rem; color: #F2F2F2; }
.signup-list li { position: relative; padding-left: 30px; }
.signup-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 4px; background: var(--c-yellow); box-shadow: 2px 2px 0 var(--c-blue); }
.signup-list strong { color: var(--c-white); }
.soon-note { color: #E6E6E6; font-size: 1.02rem; margin-bottom: 16px; }
.follow-buttons-left { margin: 0; }
.signup-card .btn-yellow svg { color: var(--c-red); }
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; max-width: none; }
  .follow-buttons-left { justify-content: flex-start; }
}
.signup { padding-top: 64px; }
@media (max-width: 559px) {
  .soon-badge { font-size: .72rem; letter-spacing: .03em; border-radius: 12px; }
}
@media (min-width: 880px) { .signup { padding-top: 88px; } }
@media (max-width: 559px) {
  .soon-badge { text-transform: none; font-size: .82rem; letter-spacing: .01em; }
}
