/* GetThatPin! landing - design tokens lifted from dist/popup/styles.css */

:root {
  --cream-50: #FDF9F2;
  --cream-100: #FBF5EC;
  --cream-200: #F7E9D7;
  --cream-300: #EFDDC4;
  --rose-50: #FFF4F4;
  --rose-100: #FDE3E6;
  --rose-200: #F7CAC9;
  --rose-300: #F2A6A8;
  --rose-500: #E94560;
  --rose-600: #D63A56;
  --rose-700: #B62E45;
  --ink-900: #2D1B26;
  --ink-700: #5A3D4D;
  --ink-500: #8A6E7E;
  --ink-300: #C5B3BC;

  --font-display: "Fredoka", "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(45, 27, 38, .06), 0 1px 3px rgba(45, 27, 38, .05);
  --shadow-md: 0 4px 12px rgba(214, 58, 86, .1), 0 2px 6px rgba(45, 27, 38, .06);
  --shadow-lg: 0 12px 28px rgba(214, 58, 86, .14), 0 6px 14px rgba(45, 27, 38, .08);
}

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

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

body {
  background: var(--cream-100);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--cream-200);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow {
  max-width: 780px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--rose-500);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--rose-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--cream-50);
  color: var(--ink-900);
  border-color: var(--cream-300);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--rose-300);
  transform: translateY(-2px);
}

.link-quiet {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 2px solid var(--rose-200);
  padding-bottom: 2px;
}

.link-quiet:hover {
  color: var(--rose-600);
  border-bottom-color: var(--rose-500);
}

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

.hero {
  padding: 56px 0 96px;
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% -10%, var(--rose-100) 0%, transparent 70%),
    var(--cream-100);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  text-decoration: none;
}

.brand img {
  border-radius: var(--radius-md);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(34px, 5vw, 52px);
}

.hero .subhead {
  margin-top: 20px;
  font-size: 20px;
  color: var(--ink-700);
}

.cta-row {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.fineprint {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-700);
  opacity: .85;
}

/* Hero demo shot */

.demo {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo img {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-md);
  background: var(--cream-50);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.demo figcaption {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-700);
  max-width: 460px;
  text-align: center;
}

/* Hero entrance: elements rise in sequence, then the shot drifts gently */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.hero .brand,
.hero .eyebrow,
.hero h1,
.hero .subhead,
.hero .cta-row,
.hero .fineprint,
.hero .demo {
  animation: rise .6s cubic-bezier(.22, .68, .36, 1) both;
}

.hero .brand     { animation-delay: .05s; }
.hero .eyebrow   { animation-delay: .13s; }
.hero h1         { animation-delay: .21s; }
.hero .subhead   { animation-delay: .30s; }
.hero .cta-row   { animation-delay: .39s; }
.hero .fineprint { animation-delay: .47s; }
.hero .demo      { animation-delay: .56s; }

.demo img {
  animation: drift 6s ease-in-out 1.5s infinite;
}

/* ---------- Section heads ---------- */

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-700);
}

/* ---------- How it works ---------- */

.steps {
  padding: 88px 0;
  background: var(--cream-50);
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}

.steps h2 {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 56px;
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 16.67%;
  right: 16.67%;
  border-top: 3px dashed var(--rose-200);
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  border: 5px solid var(--cream-50);
  box-shadow: var(--shadow-md);
}

.step p {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-700);
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- Feature rows ---------- */

.feature-section {
  padding: 96px 0;
}

.pro-section {
  padding: 96px 0;
  background: var(--rose-50);
  border-top: 1px solid var(--rose-100);
  border-bottom: 1px solid var(--rose-100);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.feature + .feature {
  margin-top: 96px;
}

.feature-flip .feature-media {
  order: 2;
}

.feature-media img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: var(--cream-50);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.feature-copy h2,
.feature-copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}

/* :not(.tag) so the chip below keeps its own colour - a bare
   `.feature-copy p` outranks `.tag-pro` and repaints it ink-700 */
.feature-copy p:not(.tag) {
  font-size: 17px;
  color: var(--ink-700);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tag-free {
  background: var(--cream-200);
  color: var(--ink-700);
}

.tag-pro {
  background: var(--rose-500);
  color: #fff;
}

/* ---------- Pricing ---------- */

.pricing {
  padding: 96px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.plan-pro {
  background: var(--rose-50);
  border-color: var(--rose-200);
  box-shadow: var(--shadow-lg);
}

.plan-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--rose-600);
  margin-bottom: 10px;
}

.plan-price {
  line-height: 1;
}

.plan-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.plan-terms {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
}

.plan-desc {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-300);
  font-size: 16px;
  color: var(--ink-700);
}

.plan-pro .plan-desc {
  border-top-color: var(--rose-200);
}

.plan-list {
  list-style: none;
  margin: 20px 0 32px;
  flex-grow: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--ink-700);
}

.plan-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--rose-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan .btn {
  width: 100%;
}

.plan-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-700);
  text-align: center;
  opacity: .85;
}

/* ---------- Privacy ---------- */

.privacy {
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--cream-200);
}

.privacy p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-700);
}

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

footer {
  padding: 56px 0 64px;
  background: var(--cream-200);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.footer-brand img {
  border-radius: var(--radius-sm);
}

footer .btn {
  margin-bottom: 28px;
}

.footer-meta {
  font-size: 14px;
  color: var(--ink-700);
}

.footer-meta + .footer-meta {
  margin-top: 8px;
  opacity: .8;
}

.footer-meta a {
  color: var(--rose-700);
  font-weight: 600;
}

/* ---------- Legal / privacy page ---------- */

.legal {
  padding: 3rem 0;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
}

.legal .updated {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-500);
}

.legal > .wrap > p:not(.updated) {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-700);
}

.legal h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 22px;
}

.legal ul {
  list-style: none;
}

.legal li {
  padding: 6px 0;
  font-size: 16px;
  color: var(--ink-700);
}

.legal li + li {
  border-top: 1px solid var(--cream-200);
}

.legal a {
  color: var(--rose-700);
  font-weight: 600;
}

/* ---------- Success page ---------- */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background:
    radial-gradient(900px 520px at 50% 0%, var(--rose-100) 0%, transparent 70%),
    var(--cream-100);
}

.success-card {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.success-card .brand {
  margin-bottom: 36px;
}

.state { display: none; }
.state.active { display: block; }

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 24px;
  border: 4px solid var(--cream-300);
  border-top-color: var(--rose-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }

  .hero .brand,
  .hero .eyebrow,
  .hero h1,
  .hero .subhead,
  .hero .cta-row,
  .hero .fineprint,
  .hero .demo,
  .demo img {
    animation: none;
  }
}

.state h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin-bottom: 16px;
}

.state > p {
  font-size: 17px;
  color: var(--ink-700);
}

.key-card {
  background: var(--cream-50);
  border: 2px dashed var(--rose-200);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin: 28px 0;
}

.key-value {
  display: block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-900);
  word-break: break-all;
  margin-bottom: 18px;
}

.copy-btn {
  background: var(--rose-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}

.copy-btn:hover { background: var(--rose-600); }

.instructions {
  font-size: 16px;
  color: var(--ink-700);
  margin-bottom: 20px;
}

.note {
  font-size: 14px;
  color: var(--ink-700);
  opacity: .85;
  margin-top: 24px;
}

.home-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--rose-700);
  font-weight: 700;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .feature,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-flip .feature-media {
    order: 0;
  }

  .feature-copy {
    text-align: center;
  }

  .feature + .feature {
    margin-top: 72px;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .wrap { padding: 0 20px; }

  .hero { padding: 40px 0 72px; }

  .cta-row {
    flex-direction: column;
    gap: 20px;
  }

  .cta-row .btn { width: 100%; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before { display: none; }

  .feature-section,
  .pro-section,
  .pricing {
    padding: 72px 0;
  }

  .section-head { margin-bottom: 48px; }

  .plan { padding: 32px 26px; }
}
