/* Tendd — shared styles for both landing page mockups.
   Tokens come from the Tendd Figma file (💻 Design). */
:root {
  --bg: #f8f6f4;
  --surface: #ffffff;
  --surface-2: #f0eeeb;
  --text: #2d2c2b;
  --text-2: #636462;
  --border: #e5e5e5;
  --lilac: #aaacff;
  --coral: #ff5c6a;
  --peach: #ffd196;
  --action: #d85a30;
  --success: #01a652;
  --brand-gradient: linear-gradient(45deg, var(--lilac) 0%, var(--coral) 25%, var(--coral) 75%, var(--peach) 100%); /* core gradient, per brand guidelines */
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  padding-right: 0.06em;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #fff; background: var(--text); padding: 9px 18px; border-radius: 999px; }
.nav-links .nav-cta:hover { color: #fff; background: #000; }

/* Store badges */
.badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badges a { display: block; transition: transform 0.15s ease; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 52px; width: auto; }
/* Google's PNG ships with built-in clear space; scale so the visible badge matches Apple's. */
.badges .badge-google img { height: 77px; margin: -12.5px -13px; }

/* Phone frame */
.phone {
  --w: 260px;
  width: var(--w);
  aspect-ratio: 380 / 844;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.17);
  background: #1d1c1b;
  box-shadow: 0 0 0 1px #3a3938 inset, 0 30px 60px -20px rgba(45, 44, 43, 0.35), 0 12px 24px -12px rgba(45, 44, 43, 0.25);
  position: relative;
  flex: none;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: calc(var(--w) * 0.14);
  background: var(--bg);
}
.phone::after { /* dynamic island */
  content: "";
  position: absolute; left: 50%; top: calc(var(--w) * 0.062);
  width: 28%; height: calc(var(--w) * 0.075);
  transform: translateX(-50%);
  border-radius: 999px; background: #1d1c1b;
}

/* Section headings */
.section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin-top: 12px; max-width: 18ch; }
.section-lead { color: var(--text-2); margin-top: 14px; max-width: 52ch; }

/* Feature grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.feature-card h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin-top: 18px; }
.feature-card p { color: var(--text-2); font-size: 15.5px; margin-top: 8px; }

/* CTA band */
.cta { margin: 0 24px; }
.cta-inner {
  max-width: calc(var(--wrap) - 48px); margin: 0 auto;
  border-radius: 32px; padding: 72px 32px; text-align: center;
  background: var(--brand-gradient); color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-inner img.cta-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 28px -10px rgba(45, 44, 43, 0.45); }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; }
.cta-inner p { max-width: 44ch; }
.cta-inner .badges { margin-top: 14px; justify-content: center; }

/* Footer */
.footer { padding: 40px 0 48px; color: var(--text-2); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta { margin: 0 16px; }
  .cta-inner { padding: 52px 20px; border-radius: 26px; }
  .badges img { height: 46px; }
  .badges .badge-google img { height: 68px; margin: -11px -11.5px; }
}
