/* ==========================================================================
   Trevor Foya — trevorfoya.com
   Brand tokens match the YouTube channel system:
   ink #565449 / cream #D6CFBC / accent (rust) #D45319
   Type: Cormorant Garamond (display) + DM Sans (ui/body)
   ========================================================================== */

:root {
  --canvas: #6d6a61;
  --ink: #18160f;
  --ink-dark: #221f17;
  --cream: #f0decb;
  --cream-soft: #faf7f0;
  --paper: #ffffff;
  --accent: #d45319;
  --accent-dark: #b8420f;
  --surface: #4a4638;
  --line: rgba(250, 247, 240, 0.16);
  --max: 1120px;
  --radius: 2px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--cream-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

/* ---------- Nav ---------- */

.site-nav {
  padding: 20px 0 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.logo {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  opacity: 0.82;
  transition: opacity 0.15s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-dark {
  background: var(--cream-soft);
  color: var(--ink-dark);
}

.btn-dark:hover { background: var(--cream); }

.btn-outline {
  background: transparent;
  border-color: var(--cream-soft);
  color: var(--cream-soft);
}

.btn-outline:hover { background: var(--cream-soft); color: var(--ink-dark); }

.btn-cream {
  background: var(--ink);
  color: var(--cream-soft);
  border-color: var(--line);
}

.btn-cream:hover { background: var(--ink-dark); }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
}

.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  opacity: 0.92;
}

.hero-links {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--cream);
  opacity: 0.85;
}

.hero-links a:hover { opacity: 1; color: var(--accent); border-color: var(--accent); }

.hero-links .sep { margin: 0 10px; opacity: 0.4; }

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(0.15);
}

/* ---------- Hero — compact (single-viewport homepage) ---------- */

.hero-compact {
  padding: 20px 0 0;
}

.hero-compact .wrap {
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: start;
  justify-items: center;
}

.hero-compact .hero-copy {
  justify-self: start;
  padding-top: 6px;
}

.hero-copy h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.hero-role {
  font-family: var(--sans);
  color: var(--cream);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  opacity: 0.75;
  margin: 0;
}

.hero-photo-compact {
  height: clamp(290px, 51vh, 510px);
  width: auto;
  align-self: start;
  justify-self: center;
  transform: translateX(-64px);
}

.hero-photo-compact img {
  height: 100%;
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

/* ---------- Section divider ---------- */

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Offer grid ---------- */

.offer-section { padding: 56px 0 64px; }

.offer-section-compact {
  padding: 16px 0 24px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 34px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-card .link { margin-top: auto; padding-top: 6px; }

.offer-card .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  color: var(--accent);
}

.offer-card .icon svg { width: 100%; height: 100%; stroke-width: 1.8; }

.offer-card h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}

.offer-card p {
  font-size: 12.5px;
  opacity: 0.7;
  margin-bottom: 14px;
}

.offer-card .link {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding-bottom: 2px;
}

.offer-card .link:hover { color: var(--accent); }

.offer-form {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.offer-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  font-family: var(--sans);
  font-size: 12px;
  border: 1px solid rgba(236, 231, 219, 0.3);
  background: rgba(236, 231, 219, 0.06);
  color: var(--cream-soft);
  border-radius: var(--radius);
}

.offer-form input[type="email"]::placeholder { color: rgba(236, 231, 219, 0.45); }
.offer-form input[type="email"]:focus { outline: none; border-color: var(--accent); }

.offer-form button {
  flex-shrink: 0;
  padding: 9px 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s ease;
}
.offer-form button:hover { background: var(--accent-dark); }

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---------- Bento homepage (v2 prototype) ---------- */

.bento-section { padding: 18px 0 24px; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 16px;
  height: clamp(540px, 76vh, 700px);
}

.bento-card {
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.28s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.bento-dark { background: var(--ink); color: var(--cream-soft); }
.bento-light { background: var(--cream-soft); color: var(--ink-dark); }
.bento-peach { background: var(--cream); color: var(--ink-dark); }

.bento-community { grid-column: 3 / 4; grid-row: 5 / 7; }
.bento-community .icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; transition: transform 0.3s ease; }
.bento-community:hover .icon { transform: scale(1.15) rotate(-6deg); }
.bento-community h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.bento-community p { font-size: 11.5px; opacity: 0.75; margin-bottom: 10px; flex: 1; }
.bento-community .link { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-dark); transition: color 0.2s ease, letter-spacing 0.2s ease; }
.bento-community:hover .link { color: var(--accent); letter-spacing: 0.06em; }

.bento-bio { grid-column: 2 / 4; grid-row: 1 / 3; justify-content: center; }
.bento-bio .eyebrow { margin-bottom: 10px; }
.bento-bio p { font-size: 14px; max-width: 44ch; margin-bottom: 16px; opacity: 0.92; }
.bento-bio-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bento-bio .btn { padding: 11px 20px; font-size: 12.5px; }
.bento-subtle { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-dark); opacity: 0.75; }
.bento-subtle:hover { opacity: 1; color: var(--accent); }

.bento-photo { grid-column: 4 / 5; grid-row: 1 / 4; padding: 0; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.bento-photo:hover img { transform: scale(1.06); }

.bento-mono { grid-column: 3 / 4; grid-row: 3 / 5; align-items: center; justify-content: center; }
.mono-mark {
  width: 64px;
  height: auto;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.bento-mono:hover .mono-mark { transform: scale(1.12) rotate(10deg); }

/* Brand mark — now the small card, in Community's old top-left slot.
   The course card below took over the headline's old dominant
   bottom-left spot, so this shrank to fit the leftover cell instead. */
.bento-headline { grid-column: 1 / 2; grid-row: 1 / 3; justify-content: flex-end; text-align: left; }
.bento-headline h1 {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.bento-role { font-family: var(--sans); font-size: 11px; opacity: 0.65; margin: 6px 0 0; }

.bento-glow {
  background:
    radial-gradient(120% 130% at 30% 20%, var(--accent) 0%, transparent 55%),
    radial-gradient(120% 130% at 80% 90%, var(--accent-dark) 0%, transparent 60%),
    var(--ink-dark);
  background-size: 140% 140%;
  background-position: 0% 0%;
  color: var(--paper);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.28s ease, background-position 0.5s ease;
}
.bento-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(212, 83, 25, 0.4);
  background-position: 10% 10%;
}
.glow-mark { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.glow-mark svg { transition: transform 0.3s ease; }
.bento-card:hover .glow-mark svg { transform: rotate(-12deg); }
.glow-mark span { font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* Implementary — same dark theme as the top-left brand card, so its
   icon and wordmark both inherit the light writing colour (no orange). */
.bento-implementary { grid-column: 4 / 5; grid-row: 4 / 7; justify-content: flex-end; }
.bento-implementary p { font-size: 12.5px; opacity: 0.85; margin: 0; max-width: 26ch; }

/* Email course card — dominant card, now sitting in the headline's old
   bottom-left slot (biggest span, strongest colour treatment, reuses the
   .bento-glow gradient above). First in DOM order so it's first on mobile. */
.bento-course { grid-column: 1 / 3; grid-row: 3 / 7; justify-content: center; }
.bento-course .eyebrow { color: var(--cream-soft); opacity: 0.85; }
.bento-course h2 {
  font-family: var(--sans);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--paper);
  margin-bottom: 12px;
  max-width: 16ch;
}
.bento-course .desc { font-size: 14px; opacity: 0.85; max-width: 40ch; margin-bottom: 18px; }
.bento-course .offer-form { display: flex; gap: 10px; margin: 0 0 10px; }
.bento-course .offer-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-radius: var(--radius);
}
.bento-course .offer-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.55); }
.bento-course .offer-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.bento-course .offer-form button {
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--accent);
  color: var(--paper);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}
.bento-course .offer-form button:hover { background: var(--accent-dark); }
.bento-course .micro { font-size: 11px; opacity: 0.55; margin: 0; }

@media (max-width: 860px) {
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; gap: 14px; }
  .bento-community, .bento-bio, .bento-headline, .bento-mono, .bento-course, .bento-implementary {
    grid-column: auto; grid-row: auto;
  }
  .bento-photo { grid-column: auto; grid-row: auto; height: 360px; }
}

/* ---------- Newsletter band ---------- */

.newsletter {
  background: var(--ink);
  color: var(--cream-soft);
  padding: 64px 0;
}

.newsletter .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.newsletter h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--paper); }

.newsletter p { opacity: 0.78; max-width: 42ch; }

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 15px;
  border: 1px solid rgba(214, 207, 188, 0.35);
  background: rgba(247, 244, 236, 0.06);
  color: var(--paper);
  border-radius: var(--radius);
}

.subscribe-form input[type="email"]::placeholder { color: rgba(214, 207, 188, 0.55); }

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  margin-top: 12px;
  font-size: 12.5px;
  opacity: 0.6;
}

@media (max-width: 760px) {
  .newsletter .wrap { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 26px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-social a { opacity: 0.75; }
.footer-social a:hover { opacity: 1; color: var(--accent); }

.footer-meta {
  font-size: 12.5px;
  opacity: 0.6;
}

/* ---------- Responsive nav / hero ---------- */

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 260px; margin: 0 auto; }
  .wrap { padding: 0 20px; }
  .site-nav .wrap { padding: 0 16px; }
}

@media (max-width: 560px) {
  .site-nav .wrap { flex-wrap: wrap; row-gap: 12px; }
  .nav-links { width: 100%; justify-content: center; gap: 16px; font-size: 12.5px; }
}

@media (max-width: 640px) {
  .hero-compact .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-compact .hero-copy { justify-self: center; }
  .hero-photo-compact { margin: 0 auto; order: -1; transform: none; }
}

/* ==========================================================================
   Lead-magnet / PDF landing pages
   ========================================================================== */

.magnet-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.magnet-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.magnet-card {
  width: 100%;
  max-width: 480px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px 40px;
  text-align: center;
}

.magnet-card .tag {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.magnet-card h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.magnet-card .desc {
  font-size: 15.5px;
  opacity: 0.85;
  margin-bottom: 28px;
}

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

.magnet-form input[type="email"] {
  padding: 15px 16px;
  font-family: var(--sans);
  font-size: 15px;
  border: 1px solid rgba(236, 231, 219, 0.3);
  background: rgba(236, 231, 219, 0.06);
  color: var(--cream-soft);
  border-radius: var(--radius);
}

.magnet-form input[type="email"]::placeholder { color: rgba(236, 231, 219, 0.5); }

.magnet-form input[type="email"]:focus { outline: none; border-color: var(--accent); }

.magnet-form .btn { justify-content: center; width: 100%; }

.magnet-back {
  display: inline-block;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.65;
}
.magnet-back:hover { opacity: 1; color: var(--accent); }

.magnet-footer {
  text-align: center;
  padding: 24px 20px 34px;
  font-size: 12px;
  opacity: 0.55;
}

/* ---------- Course landing page (reuses .magnet-* base) ---------- */

.magnet-card.course-card { max-width: 640px; text-align: left; }
.course-card .eyebrow { text-align: left; }
.course-card h1 { font-size: 34px; margin-bottom: 14px; }
.course-card .lede { font-size: 15px; opacity: 0.85; margin-bottom: 16px; }
.course-card .lede:last-of-type { margin-bottom: 22px; }
.course-card .magnet-form { margin-bottom: 10px; }
.course-card .micro { font-size: 12px; opacity: 0.55; margin: 0 0 32px; }
.course-card h3 { font-size: 18px; margin-bottom: 4px; }
.course-days { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.course-days li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.course-days .day-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  width: 58px;
}
.course-cred { font-size: 13.5px; opacity: 0.75; margin-bottom: 26px; }

/* ---------- Links (mobile bio) page ---------- */

.links-page {
  min-height: 100vh;
  padding: 56px 20px 40px;
  display: flex;
  justify-content: center;
}

.links-card { width: 100%; max-width: 420px; text-align: center; }

.links-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--ink);
  margin: 0 auto 18px;
  border: 3px solid var(--ink);
}

.links-card .eyebrow { text-align: center; }

.links-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.links-card .bio {
  font-size: 14.5px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.links-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
}

.links-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.links-social a:hover { background: var(--ink); color: var(--cream-soft); border-color: var(--ink); }

.links-form-block { margin-bottom: 14px; text-align: left; }

.links-form-label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.links-form input[type="email"] {
  display: block;
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 15px;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream-soft);
  border-radius: var(--radius);
}
.links-form input[type="email"]::placeholder { color: rgba(236, 231, 219, 0.5); }
.links-form input[type="email"]:focus { outline: none; border-color: var(--accent); }

.links-form button {
  display: block;
  width: 100%;
  padding: 17px 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.links-form button:hover { transform: translateY(-1px); background: var(--accent-dark); }

.links-form-block .micro { font-size: 11.5px; opacity: 0.55; margin: 0; text-align: center; }

.link-btn {
  display: block;
  width: 100%;
  padding: 17px 20px;
  margin-bottom: 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s ease, border-color .15s ease;
}
.link-btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }

.link-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.link-btn.primary:hover { color: var(--paper); background: var(--accent-dark); }

/* ---------- Resources grid page ---------- */

.page-header {
  padding: 60px 0 20px;
  text-align: center;
}
.page-header h1 { font-size: clamp(30px, 4vw, 44px); }
.page-header p { max-width: 52ch; margin: 0 auto; opacity: 0.85; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0 80px;
}
@media (max-width: 900px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resources-grid { grid-template-columns: 1fr; } }

.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.resource-card .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
.resource-card h3 { font-size: 18px; margin-bottom: 10px; }
.resource-card p { font-size: 13.5px; opacity: 0.8; flex: 1; margin-bottom: 18px; }
.resource-card .btn { align-self: flex-start; }

/* ---------- Thanks page ---------- */

.thanks-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.thanks-main .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.thanks-main h1 { font-size: 32px; margin-bottom: 12px; }
.thanks-main p { max-width: 44ch; margin: 0 auto 28px; opacity: 0.85; }

.thanks-segment { margin-top: 4px; }
.segment-q { font-size: 14px; font-weight: 700; opacity: 0.85; margin-bottom: 14px; }
.segment-options { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.segment-options form { margin: 0; }
.segment-confirm { font-size: 14px; opacity: 0.8; margin: 0; }
