/* Tendly website. Same paper, ink and typefaces as the app; nothing is loaded from other sites. */
@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/Baloo2_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/Figtree_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f5ead8;
  --card: #fbf4e8;
  --ink: #201e1d;
  --muted: #645c50;
  --accent: #8c491a;
  --accent-soft: #f0d5bd;
  --hairline: #e2d3bb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #221f1a;
    --card: #322e27;
    --ink: #f5ead8;
    --muted: #c0b6a5;
    --accent: #ffc6a5;
    --accent-soft: #4a3a2c;
    --hairline: #453f35;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2 {
  font-family: 'Baloo 2', 'Figtree', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
}
p {
  margin: 0;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 720px;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.top nav {
  display: flex;
  gap: 20px;
  font-weight: 600;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 16px;
  max-width: 34ch;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
}
.soon {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* The drawn phone: an illustration of the Today screen, not a screenshot. */
.phone {
  justify-self: center;
  width: min(300px, 100%);
  border-radius: 40px;
  padding: 14px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(32 30 29 / 0.5);
  transform: rotate(2deg);
}
.screen {
  border-radius: 28px;
  background: var(--paper);
  padding: 22px 16px 18px;
}
.screen .day {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
}
.screen .date {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.85rem;
}
.dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.row b {
  display: block;
  font-weight: 700;
}
.row span {
  color: var(--muted);
  font-size: 0.75rem;
}
.row.done {
  opacity: 0.6;
}
.row .tick {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
section {
  padding: 56px 0;
}
.band {
  background: var(--card);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.intro {
  color: var(--muted);
  margin-top: 10px;
  max-width: 56ch;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-top: 32px;
}
.grid p {
  color: var(--muted);
  font-size: 0.97rem;
}
.plus-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.plus-list li {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px 20px;
}
.plus-list p {
  color: var(--muted);
  font-size: 0.97rem;
}
.promise {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.promise li::before {
  content: '✓';
  color: var(--accent);
  margin-right: 10px;
}

/* Text pages */
.doc {
  padding-top: 24px;
  padding-bottom: 72px;
}
.doc h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}
.doc h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 8px;
}
.doc p,
.doc ul {
  margin: 0 0 14px;
}
.doc ul {
  padding-left: 22px;
}
.doc .updated {
  color: var(--muted);
  margin: 8px 0 28px;
}
.summary {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 18px 20px;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
    padding-bottom: 48px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .plus-list,
  .promise {
    grid-template-columns: 1fr;
  }
  section {
    padding: 40px 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
