/* Tend landing (tech3n.com) — Scrapbook Diary tokens from app/theme/tokens.ts. */
:root {
  --canvas: #fff8f5;
  --paper: #fffbf2;
  --paper-warm: #fdf0e6;
  --ink: #3a2a1d;
  --ink-soft: #73604a;
  --rose: #b3584b;
  --rose-deep: #93443a;
  --amber: #b8703d;
  --gold: #c79a2e;
  --tape: #f6d89a;
  --tape-rose: #f2c6bc;
  --leaf: #6f8f5e;
  --leaf-fill: #dce8d2;
  --line: #ead9c8;
  --shadow: 0 1px 2px rgba(58, 42, 29, 0.06), 0 12px 28px -12px rgba(58, 42, 29, 0.22);
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(115, 96, 74, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rose);
}

.wrap {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 245, 0.86);
  border-bottom: 1px solid rgba(234, 217, 200, 0.7);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav .wrap {
  align-items: center;
  display: flex;
  gap: 24px;
  height: 68px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  height: 38px;
  width: 38px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.brand-by {
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--rose);
}

/* ---------- Buttons ---------- */
.btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  padding: 14px 24px;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--rose);
  box-shadow: 0 10px 22px -10px rgba(179, 88, 75, 0.7);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rose-deep);
}

.btn-ghost {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.soon {
  align-items: center;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
}

.soon .dot {
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--leaf-fill);
  height: 8px;
  width: 8px;
}

/* ---------- Shared scrapbook bits ---------- */
.eyebrow {
  color: var(--amber);
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1.1;
}

.tape {
  background: var(--tape);
  height: 26px;
  opacity: 0.85;
  position: absolute;
  width: 92px;
  z-index: 2;
}

.pin {
  background: radial-gradient(circle at 35% 35%, #e3907f, var(--rose) 60%, var(--rose-deep));
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(58, 42, 29, 0.35);
  height: 14px;
  left: 50%;
  position: absolute;
  top: -7px;
  transform: translateX(-50%);
  width: 14px;
  z-index: 2;
}

.paper {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}

h1 em,
h2 em {
  color: var(--rose);
}

section {
  padding: 96px 0;
}

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

.section-head h2 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  margin-top: 6px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 18px 0 0;
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding: 72px 0 96px;
}

.hero .wrap {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: 1.05fr 1fr;
}

.hero h1 {
  font-size: clamp(46px, 6.4vw, 78px);
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-top: 10px;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 19px;
  margin: 24px 0 32px;
  max-width: 540px;
}

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

.hero-note {
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 22px;
  margin-top: 28px;
  transform: rotate(-1.5deg);
}

.phones {
  height: 620px;
  position: relative;
}

.phone {
  background: #1d1611;
  border-radius: 46px;
  box-shadow: 0 30px 60px -24px rgba(58, 42, 29, 0.55);
  padding: 10px;
  position: absolute;
  width: 270px;
}

.phone img {
  aspect-ratio: auto;
  border-radius: 37px;
  height: auto;
  width: 100%;
}

.phone-back {
  left: 4%;
  top: 40px;
  transform: rotate(-6deg);
}

.phone-front {
  right: 2%;
  top: 0;
  transform: rotate(4deg);
}

.phone-front .tape {
  left: 50%;
  top: -14px;
  transform: translateX(-50%) rotate(-4deg);
}

.sticky-note {
  background: #fdf3c8;
  bottom: 18px;
  box-shadow: var(--shadow);
  font-family: var(--hand);
  font-size: 23px;
  left: 30%;
  line-height: 1.15;
  padding: 18px 20px;
  position: absolute;
  transform: rotate(-3deg);
  width: 210px;
  z-index: 3;
}

/* ---------- Problem ---------- */
.section-pad {
  padding: 0 24px;
}

.problem-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.problem-card {
  padding: 34px 28px 30px;
}

.problem-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.problem-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.problem-card:nth-child(3) {
  transform: rotate(-0.6deg);
}

.problem-card .hand {
  color: var(--rose);
  font-family: var(--hand);
  font-size: 30px;
  line-height: 1.1;
}

.problem-card p {
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 30px 26px 28px;
}

.feature:nth-child(3n + 1) {
  transform: rotate(-0.8deg);
}

.feature:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}

.feature:nth-child(3n) {
  transform: rotate(-0.3deg);
}

.feature-icon {
  align-items: center;
  background: var(--paper-warm);
  border-radius: 14px;
  display: flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  margin-bottom: 16px;
  width: 48px;
}

.feature h3 {
  font-size: 27px;
  line-height: 1.15;
}

.feature p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 10px 0 0;
}

.tag {
  background: var(--leaf-fill);
  border-radius: 999px;
  color: #4b6640;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 14px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.tag-plus {
  background: #f7dfd8;
  color: var(--rose-deep);
}

/* ---------- AI ---------- */
.ai {
  background: linear-gradient(180deg, rgba(253, 240, 230, 0) 0%, rgba(253, 240, 230, 0.9) 18%, rgba(253, 240, 230, 0.9) 82%, rgba(253, 240, 230, 0) 100%);
}

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

.ai-row + .ai-row {
  margin-top: 96px;
}

.ai-row.flip .ai-shot {
  order: 2;
}

.ai-shot {
  display: flex;
  justify-content: center;
}

.ai-shot .phone {
  position: relative;
  transform: rotate(-2deg);
}

.ai-row.flip .ai-shot .phone {
  transform: rotate(2deg);
}

/* The reflection screen is mostly empty below the card: its image is cropped to the top. */
.phone-crop img {
  border-radius: 37px 37px 28px 28px;
}

.ai-copy h3 {
  font-size: clamp(32px, 4vw, 44px);
  font-style: italic;
  line-height: 1.08;
}

.ai-copy p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 18px 0 0;
}

.verdicts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.verdict {
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.verdict.send {
  color: var(--leaf);
  transform: rotate(-2deg);
}

.verdict.wait {
  color: var(--amber);
  transform: rotate(1.5deg);
}

.verdict.dont {
  color: var(--rose);
  transform: rotate(-1deg);
}

.principles {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 104px;
}

.principle {
  padding: 26px 22px 24px;
}

.principle .hand {
  color: var(--rose);
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1.1;
}

.principle p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 10px 0 0;
}

/* ---------- Insights strip ---------- */
.insights .wrap {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
}

.insights .phones-pair {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.insights .phone {
  position: relative;
  width: 230px;
}

.insights .phone:first-child {
  transform: rotate(-3deg) translateY(18px);
}

.insights .phone:last-child {
  transform: rotate(3deg);
}

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.checklist li {
  color: var(--ink-soft);
  margin: 12px 0;
  padding-left: 34px;
  position: relative;
}

.checklist li::before {
  color: var(--leaf);
  content: "✓";
  font-weight: 800;
  left: 6px;
  position: absolute;
}

/* ---------- Plans ---------- */
.plans-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 860px;
}

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

.plan:first-child {
  transform: rotate(-0.8deg);
}

.plan:last-child {
  border: 2px solid var(--rose);
  transform: rotate(0.8deg);
}

.plan h3 {
  font-size: 34px;
  font-style: italic;
}

.plan .price-note {
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 24px;
}

/* ---------- About / contact ---------- */
.about {
  padding-bottom: 120px;
}

.about-card {
  margin: 0 auto;
  max-width: 760px;
  padding: 52px 48px 44px;
  text-align: center;
  transform: rotate(-0.5deg);
}

.about-card .tape {
  left: 50%;
  top: -12px;
  transform: translateX(-50%) rotate(3deg);
}

.about-card h2 {
  font-size: clamp(34px, 4.6vw, 48px);
  font-style: italic;
}

.about-card p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 18px auto 0;
  max-width: 560px;
}

.about-card .btn {
  margin-top: 28px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 36px 0 48px;
}

footer .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

footer a {
  color: var(--ink-soft);
}

.disclaimer {
  font-size: 13px;
  margin-top: 14px;
  max-width: 680px;
}

/* ---------- Simple pages (support) ---------- */
.page {
  padding: 72px 0 96px;
}

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

.page h1 {
  font-size: clamp(44px, 6vw, 64px);
  font-style: italic;
  line-height: 1.05;
}

.page .lead {
  color: var(--ink-soft);
  font-size: 19px;
  margin: 18px 0 40px;
}

.faq {
  margin-bottom: 18px;
  padding: 26px 28px 24px;
}

.faq h2 {
  font-size: 26px;
  line-height: 1.2;
}

.faq p {
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap,
  .ai-row,
  .insights .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .phones {
    height: 560px;
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
  }

  .problem-grid,
  .features-grid,
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-row.flip .ai-shot {
    order: 0;
  }

  .nav-links {
    display: none;
  }
}

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

  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .phones {
    height: 470px;
  }

  .phone {
    border-radius: 36px;
    padding: 8px;
    width: 205px;
  }

  .phone img {
    border-radius: 29px;
  }

  .sticky-note {
    font-size: 20px;
    left: 18%;
    width: 180px;
  }

  .problem-grid,
  .features-grid,
  .principles,
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav .btn {
    padding: 10px 16px;
  }

  .insights .phone {
    width: 160px;
  }

  .about-card {
    padding: 44px 24px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
