/* ==========================================================
   GGDrop Promo – Zinc Neutral Design System
   ========================================================== */

/* --- Custom Properties --- */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f4f4f5;
  --border: #d4d4d8;
  --accent: #18181b;
  --accent-light: #3f3f46;
  --text: #18181b;
  --muted: #71717a;
  --badge-bg: #f4f4f5;
  --badge-text: #18181b;
  --code-bg: #f4f4f5;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(24,24,27,.06);
  --shadow-md: 0 4px 12px rgba(24,24,27,.08);
  --shadow-lg: 0 8px 30px rgba(24,24,27,.10);
  --shadow-cta: 0 4px 16px rgba(24,24,27,.2);
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Syne', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --contain: 1120px;
  --gap: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

/* --- Utilities --- */
.gd-contain {
  width: 100%;
  max-width: var(--contain);
  margin-inline: auto;
  padding-inline: 20px;
}

.gd-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;
}

.gd-prose {
  max-width: 760px;
  line-height: 1.7;
  color: var(--text);
}
.gd-prose + .gd-prose { margin-top: 16px; }

/* --- Buttons --- */
.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.gd-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-cta);
  transform: translateY(-1px);
  color: #fff;
}
.gd-btn:active { transform: translateY(0); }
.gd-btn--outline {
  background: transparent;
  color: var(--accent);
}
.gd-btn--outline:hover {
  background: var(--accent);
  color: #fff;
}
.gd-btn--sm {
  font-size: .875rem;
  padding: 10px 20px;
}

/* --- Header / Masthead --- */
.gd-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.gd-masthead.gd-masthead--scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.gd-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.gd-masthead__brand img { height: 32px; width: auto; }
.gd-masthead__nav { flex: 1; }
.gd-masthead__links {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.gd-masthead__link {
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}
.gd-masthead__link:hover {
  color: var(--text);
  background: var(--surface2);
}
.gd-masthead__link--current {
  color: var(--text);
  background: var(--surface2);
}
.gd-masthead__cta { flex-shrink: 0; }

/* Hamburger */
.gd-masthead__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.gd-masthead__toggle span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.gd-masthead__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.gd-masthead__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.gd-masthead__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.gd-hero {
  padding: 72px 0 64px;
  background: var(--surface);
}
.gd-hero--compact {
  padding: 56px 0 48px;
}
.gd-hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.gd-hero__content { flex: 1; min-width: 0; }
.gd-hero__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
}
.gd-hero__visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(24,24,27,.08));
}
.gd-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 12px;
}
.gd-hero__sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
}

/* --- Promo Coupon Widget --- */
.gd-coupon {
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface);
  max-width: 520px;
  margin-bottom: 28px;
}
.gd-coupon__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gd-coupon__badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 4px 12px;
  border-radius: 99px;
}
.gd-coupon__date {
  font-size: .8rem;
  color: var(--muted);
}
.gd-coupon__body {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
}
.gd-coupon__code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--code-bg);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 12px 20px;
  border: 1px solid var(--border);
  user-select: all;
}
.gd-coupon__copy {
  flex-shrink: 0;
  min-width: 130px;
}
.gd-coupon__copy.gd-copied {
  background: #16a34a;
  border-color: #16a34a;
}
.gd-coupon__desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}
.gd-coupon__note {
  font-size: .8rem;
  opacity: .7;
}

/* --- Hero Actions --- */
.gd-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Sections --- */
.gd-section {
  padding: 64px 0;
}
.gd-section--alt {
  background: var(--surface);
}

/* --- Headings --- */
.gd-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 24px;
}
.gd-heading--lg {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* --- Steps --- */
.gd-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}
.gd-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.gd-section--alt .gd-step {
  background: var(--surface2);
}
.gd-step:hover {
  box-shadow: var(--shadow-md);
}
.gd-step__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}
.gd-step__body { flex: 1; min-width: 0; }
.gd-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.gd-step__body p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* --- CTA Row --- */
.gd-cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Detail Grid --- */
.gd-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 32px 0 8px;
}
.gd-detail-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.gd-detail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.gd-detail-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 12px;
}
.gd-detail-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.gd-detail-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Tables --- */
.gd-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.gd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .925rem;
}
.gd-table th,
.gd-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.gd-table thead th {
  background: var(--surface2);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.gd-table tbody tr:last-child td { border-bottom: none; }
.gd-table tbody tr {
  transition: background var(--transition);
}
.gd-table tbody tr:hover {
  background: var(--surface2);
}

.gd-code-inline {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .95em;
  background: var(--code-bg);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .03em;
}

.gd-status {
  font-weight: 600;
  white-space: nowrap;
  color: #16a34a;
}

/* --- Checklist --- */
.gd-checklist {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gd-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text);
}
.gd-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

/* --- FAQ --- */
.gd-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gd-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
  background: var(--surface);
}
.gd-faq__item:hover {
  box-shadow: var(--shadow-sm);
}
.gd-faq__item[open] {
  box-shadow: var(--shadow-md);
}
.gd-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}
.gd-faq__question::-webkit-details-marker { display: none; }
.gd-faq__question::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2371717a'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--transition);
}
.gd-faq__item[open] .gd-faq__question::after {
  transform: rotate(180deg);
}
.gd-faq__question:hover {
  background: var(--surface2);
}
.gd-faq__answer {
  padding: 0 24px 20px;
  animation: gd-fadein .25s ease;
}
.gd-faq__answer p {
  color: var(--muted);
  line-height: 1.7;
  font-size: .95rem;
}

@keyframes gd-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Updated --- */
.gd-updated {
  padding: 32px 0;
}
.gd-updated__text {
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

/* --- Legal --- */
.gd-legal-hero {
  padding: 56px 0 32px;
  background: var(--surface);
}
.gd-legal-date {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 8px;
}
.gd-legal h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}
.gd-legal p { margin-bottom: 12px; }
.gd-legal ul, .gd-legal ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.gd-legal li {
  list-style: disc;
  margin-bottom: 6px;
  line-height: 1.7;
}

/* --- Footer --- */
.gd-footer {
  background: var(--accent);
  color: rgba(255,255,255,.75);
  padding: 48px 0 32px;
}
.gd-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.gd-footer__brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.gd-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}
.gd-footer__nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.gd-footer__nav a:hover { color: #fff; }
.gd-footer__warning {
  max-width: 640px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: .85rem;
  line-height: 1.65;
}
.gd-footer__age {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}
.gd-footer__orgs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.gd-footer__org-badge {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.15);
}
.gd-footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* --- Scroll to Top --- */
.gd-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.gd-scroll-top[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gd-scroll-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {
  .gd-hero__visual { width: 200px; }
  .gd-hero__inner { gap: 32px; }
}

@media (max-width: 768px) {
  .gd-masthead__nav { display: none; }
  .gd-masthead__cta { display: none; }
  .gd-masthead__toggle { display: flex; }

  .gd-masthead__nav.gd-masthead__nav--open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
    animation: gd-fadein .2s ease;
  }
  .gd-masthead__nav--open .gd-masthead__links {
    flex-direction: column;
    gap: 4px;
  }
  .gd-masthead__nav--open .gd-masthead__link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .gd-hero__inner {
    flex-direction: column;
    text-align: center;
  }
  .gd-hero__visual {
    order: 2;
    width: 160px;
  }
  .gd-hero__content { order: 1; }
  .gd-hero__actions { justify-content: center; }
  .gd-coupon { margin-inline: auto; }

  .gd-hero { padding: 48px 0 40px; }

  .gd-section { padding: 48px 0; }

  .gd-btn {
    width: 100%;
    padding: 16px 24px;
  }
  .gd-btn--sm { width: auto; }
  .gd-hero__actions .gd-btn { width: auto; min-width: 140px; }

  .gd-detail-grid {
    grid-template-columns: 1fr;
  }

  .gd-cta-row { justify-content: center; }
  .gd-cta-row .gd-btn { width: 100%; max-width: 360px; }

  .gd-table { font-size: .85rem; }
  .gd-table th,
  .gd-table td { padding: 12px 14px; }
}

@media (max-width: 480px) {
  .gd-hero__title { font-size: 1.55rem; }
  .gd-coupon { padding: 18px; }
  .gd-coupon__code { font-size: 1.2rem; padding: 10px 14px; }
  .gd-coupon__body { flex-direction: column; }
  .gd-coupon__copy { min-width: unset; }
  .gd-hero__actions { flex-direction: column; align-items: center; }
  .gd-hero__actions .gd-btn { width: 100%; }
  .gd-faq__question { padding: 16px 18px; font-size: .95rem; }
  .gd-faq__answer { padding: 0 18px 16px; }
  .gd-step { flex-direction: column; gap: 12px; padding: 20px; }

  .gd-table--codes td:nth-child(2) {
    min-width: 180px;
  }
}