/* Tappy — calm, tactile, premium */

:root {
  color-scheme: light;
  --ink: #181a20;
  --body: #535b67;
  --muted: #7c8492;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --line: rgba(24, 26, 32, 0.08);
  --line-strong: rgba(24, 26, 32, 0.15);
  --accent: #585ce5;
  --accent-dark: #4347c6;
  --accent-soft: #eceefe;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(24, 26, 32, 0.05), 0 4px 12px rgba(24, 26, 32, 0.05);
  --shadow-md: 0 2px 6px rgba(24, 26, 32, 0.05), 0 14px 34px rgba(24, 26, 32, 0.09);
  --shadow-lg: 0 6px 18px rgba(24, 26, 32, 0.07), 0 30px 70px rgba(24, 26, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

/* ---------- Type ---------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.032em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 660;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.014em;
}

p,
li {
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1060px, calc(100% - 32px));
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: var(--body);
  font-size: 14px;
  font-weight: 540;
}

.nav-links a,
.nav-links strong {
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(24, 26, 32, 0.05);
}

.nav-links strong {
  color: var(--ink);
}

.nav-download {
  margin-left: 6px;
  color: #fff !important;
  background: var(--ink) !important;
}

.nav-download:hover {
  background: #2c2f38 !important;
}

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

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(67, 71, 198, 0.4), 0 10px 26px rgba(88, 92, 229, 0.3);
}

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

.button-secondary-light {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button-secondary-light:hover {
  border-color: rgba(24, 26, 32, 0.3);
}

button.button {
  cursor: pointer;
  font: inherit;
  font-weight: 620;
}

button.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

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

.hero {
  padding: clamp(140px, 18vh, 190px) 20px 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(88, 92, 229, 0.09), transparent 62%),
    radial-gradient(720px 420px at 84% 4%, rgba(125, 196, 228, 0.14), transparent 58%),
    radial-gradient(640px 380px at 12% 8%, rgba(186, 168, 255, 0.1), transparent 55%);
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero-copy {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.hero .actions {
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.keycap {
  padding: 8px 14px 10px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--body);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.hero-figure {
  position: relative;
  width: min(1060px, 100%);
  margin: clamp(44px, 6vw, 64px) auto 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-figure figcaption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-figure figcaption::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 130px) 0 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(34px, 5vw, 52px);
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 17px;
}

/* ---------- Sound texture cards ---------- */

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pack-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pack-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pack-card-copy {
  padding: 22px 24px 26px;
}

.pack-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pack-tag-free {
  background: #e5f4ec;
  color: #1d7d52;
}

.pack-card-copy p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ---------- Menu bar / privacy ---------- */

.app-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(640px 420px at 88% 0%, rgba(125, 196, 228, 0.16), transparent 60%),
    linear-gradient(160deg, #f0f1fb 0%, #f7f9fa 60%, #eef5f4 100%);
}

.app-panel-copy p {
  max-width: 460px;
}

.privacy-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 560;
}

.privacy-list li span {
  display: block;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 400;
}

.privacy-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.app-panel-figure {
  margin: 0;
}

.app-panel-figure img {
  width: min(360px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(24, 26, 32, 0.28));
}

/* ---------- Get Tappy ---------- */

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(720px 420px at 50% -10%, rgba(88, 92, 229, 0.1), transparent 62%),
    linear-gradient(160deg, #f0f1fb 0%, #f7f9fa 60%, #eef5f4 100%);
  text-align: center;
}

.cta-copy {
  max-width: 540px;
  margin-bottom: 30px;
  font-size: 17px;
}

.cta-panel .eyebrow {
  margin-bottom: 14px;
}

.cta-panel .actions {
  justify-content: center;
}

.price-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.cta-panel {
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(88, 92, 229, 0.1), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.cta-panel h2 {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-copy {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 17px;
}

.cta-panel .actions {
  justify-content: center;
}

.cta-panel .price-note {
  margin-top: 16px;
}

/* ---------- Steps ---------- */

.purchase-steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.purchase-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 540;
  line-height: 1.45;
}

.purchase-steps span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: min(1060px, calc(100% - 40px));
  margin: clamp(80px, 10vw, 120px) auto 0;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Secondary pages (privacy / support) ---------- */

.shell {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(130px, 16vh, 170px) 0 0;
}

.panel {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.lede {
  max-width: 640px;
  font-size: 17px;
}

.section-block {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section-block h2 {
  font-size: 24px;
}

.panel ul {
  padding-left: 22px;
}

.panel li {
  margin-bottom: 6px;
}

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

.success-page {
  background:
    radial-gradient(800px 480px at 50% -6%, rgba(88, 92, 229, 0.1), transparent 60%),
    var(--bg);
}

.checkout-shell {
  display: grid;
  place-items: center;
  padding: clamp(130px, 16vh, 170px) 20px 80px;
}

.checkout-panel {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.checkout-panel h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.license-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.license-card label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.license-card textarea {
  min-height: 110px;
  width: 100%;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.license-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}

.license-actions .button {
  padding-left: 14px;
  padding-right: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.license-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-steps {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 900px) {
  .pack-grid {
    grid-template-columns: 1fr;
  }

  .pack-card img {
    aspect-ratio: 16 / 9;
  }

  .app-panel {
    grid-template-columns: 1fr;
  }

  .app-panel-figure {
    order: -1;
  }

  .app-panel-figure img {
    width: min(300px, 80%);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    width: 100%;
    padding: 12px 16px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .brand {
    width: fit-content;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    font-size: 13px;
  }

  .nav-links a,
  .nav-links strong {
    padding: 8px 8px;
  }

  .nav-download {
    margin-left: 0;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-figure img {
    aspect-ratio: 4 / 3;
  }

  .hero-figure figcaption {
    bottom: 12px;
    left: 12px;
  }

  .button {
    width: 100%;
  }

  .hero .actions {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
  }

  .app-panel {
    padding: 24px 20px;
  }

  .shell,
  .checkout-shell {
    padding-top: 40px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .license-actions {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer a {
    margin: 0 20px 0 0;
  }
}
