:root {
  color-scheme: light;
  --bg: #ececf1;
  --bg-soft: #e2e2e9;
  --surface: #ffffff;
  --panel: #f3f3f8;
  --ink: #242a34;
  --muted: #626a76;
  --accent: #e31963;
  --accent-soft: #fde7ef;
  --line: #d3d5de;
  --shadow-sm: 0 6px 16px rgba(33, 40, 47, 0.08);
  --shadow-md: 0 16px 40px rgba(33, 40, 47, 0.1);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, #f8f8fc 0%, transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

h1,
h2,
h3,
h4,
.brand span {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.page {
  position: relative;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  gap: 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2vw, 26px);
}

.brand img {
  height: 34px;
  width: auto;
}

.navlinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.navlinks a {
  font-size: 15px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.navlinks a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.hero {
  display: grid;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  color: #1e2430;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.home-title {
  font-size: clamp(44px, 7vw, 76px);
}

.home-lede {
  max-width: 740px;
}

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

.home-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.home-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.home-panel p {
  margin: 0;
  color: var(--muted);
}

.product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff7f0;
  box-shadow: inset 0 0 0 1px rgba(201, 123, 90, 0.14);
}

.product-mark span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.product-mark img {
  display: block;
  width: 40px;
  height: 40px;
}

.product-mark-easycards {
  background: linear-gradient(180deg, #ef2d72 0%, #db155d 100%);
  box-shadow: inset 0 0 0 1px rgba(219, 21, 93, 0.22);
}

.home-panel-featured {
  border-color: var(--line);
  background: var(--surface);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(227, 25, 99, 0.22);
}

.button.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

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

.section-title {
  margin: 0 0 6px;
  font-size: 30px;
}

.quote {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.support-card,
.policy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 23px;
}

.card p,
.support-card p,
.policy p {
  margin: 0;
  color: var(--muted);
}

.card .links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid #f2bfd1;
  background: var(--accent-soft);
  color: #b2134d;
  font-weight: 600;
  font-size: 14px;
}

.app-store-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 10px;
}

.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.site-badge {
  display: inline-grid;
  gap: 2px;
  width: fit-content;
  background: #101216;
  color: #ffffff;
  border: 1px solid #101216;
  border-radius: 10px;
  padding: 7px 12px 8px;
  line-height: 1.1;
}

.site-badge-eyebrow {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.site-badge-name {
  font-size: 17px;
  font-weight: 600;
}

.info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.support-card {
  padding: 18px;
}

.support-card h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.policy {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.policy h2,
.policy h3 {
  margin: 0;
}

.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--muted);
  padding: 12px 14px;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form label {
  font-size: 14px;
  color: var(--muted);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.feedback-form textarea {
  min-height: 130px;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: 2px solid #f7bdd2;
  outline-offset: 1px;
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.fade-up {
  animation: fadeUp 0.45s ease both;
}

.fade-up.delay-1 {
  animation-delay: 0.04s;
}

.fade-up.delay-2 {
  animation-delay: 0.08s;
}

.fade-up.delay-3 {
  animation-delay: 0.12s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 720px) {
  .container {
    padding: 30px 16px 50px;
    gap: 28px;
  }

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

  .hero h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .home-title {
    font-size: clamp(38px, 11vw, 54px);
  }

  .card,
  .support-card,
  .policy,
  .home-panel {
    padding: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
  }

  .button,
  .navlinks a {
    transition: none;
  }
}
