/* Mahj Mentor website. The app's parchment, jade and ink, its three suit
   colors, Fraunces for display and Inter for reading. Mobile first. */

:root {
  --parchment: #f7f2e9;
  --paper: #fffdf7;
  --ivory: #faf5ea;
  --jade: #1f6f5c;
  --jade-deep: #175245;
  --jade-night: #103b32;
  --jade-soft: #dfeae3;
  --ink: #1e2229;
  --ink-soft: #4b525c;
  --line: #e4dccb;
  --line-soft: #ece5d6;
  --crak: #c0261f;
  --dot: #1d5fa8;
  --bam: #1f7a44;
  --gold: #d8a94a;
  --on-felt: #fffdf7;
  --on-felt-soft: rgb(255 253 247 / 0.9);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 24px;
  --shadow-card: 0 1px 2px rgb(30 34 41 / 0.04), 0 10px 30px -12px rgb(30 34 41 / 0.12);
  --gutter: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--jade-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--jade);
}

:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(1160px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 21px/1 var(--display);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 10px -4px rgb(23 82 69 / 0.5);
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
}

.signin svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.signin:hover {
  color: var(--jade-deep);
  text-decoration: underline;
}

/* Store badges: not links yet, so they never look pressable. */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 164px;
  min-height: 56px;
  padding: 8px 18px 9px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.store small {
  font-size: 12px;
  line-height: 1.2;
  color: rgb(255 253 247 / 0.78);
}

.store strong {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.stores-light .store {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px -10px rgb(30 34 41 / 0.25);
}

.stores-light .store small {
  color: var(--ink-soft);
}

/* Phone frame around a real app screen. --w sets the width. */

.phone {
  --w: 240px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.15);
  background: linear-gradient(150deg, #353b44, #14171b 55%, #22262c);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    0 34px 60px -24px rgb(16 40 34 / 0.5),
    0 14px 26px -14px rgb(16 40 34 / 0.4);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.12);
  background: var(--parchment);
  padding-top: 10.5%;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.028);
  left: 50%;
  width: 31%;
  height: calc(var(--w) * 0.068);
  transform: translateX(-50%);
  border-radius: calc(var(--w) * 0.04);
  background: #121418;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.phone figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 14px);
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Hero */

.hero {
  padding: 8px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(40px, 10.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.022em;
  max-width: 13ch;
}

.hero .lede {
  margin-top: 18px;
  max-width: 34ch;
  font-size: clamp(18px, 4.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero .stores {
  margin-top: 28px;
}

.hero-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

.felt {
  position: relative;
  overflow: hidden;
  height: clamp(430px, 124vw, 560px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgb(255 236 180 / 0.16), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 20%, #2a8570, var(--jade) 45%, var(--jade-deep) 80%, var(--jade-night));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06), inset 0 -40px 80px -40px rgb(0 0 0 / 0.35), var(--shadow-card);
}

/* A whisper of baize texture. */
.felt::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.felt .phone {
  position: absolute;
}

.hero .phone-back {
  --w: clamp(168px, 47vw, 236px);
  left: 7%;
  top: 19%;
  transform: rotate(-7deg);
}

.hero .phone-front {
  --w: clamp(190px, 54vw, 270px);
  right: 6%;
  top: 9%;
  transform: rotate(4deg);
}

.felt .tile {
  position: absolute;
  width: clamp(40px, 11vw, 58px);
  height: auto;
  filter: drop-shadow(0 8px 8px rgb(0 0 0 / 0.28));
}

.felt .t1 { left: 5%; top: 4.5%; transform: rotate(-14deg); }
.felt .t2 { left: 19%; top: 3%; transform: rotate(9deg); }
.felt .t3 { right: -1%; bottom: 3%; transform: rotate(16deg); z-index: 2; }
.felt .t4 { left: 2%; bottom: 10%; transform: rotate(-8deg); z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .hero .phone-front { animation: rise-front 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .phone-back { animation: rise-back 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .felt .tile { animation: settle 700ms 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes rise-front {
    from { opacity: 0; transform: translateY(40px) rotate(4deg); }
    to { opacity: 1; transform: translateY(0) rotate(4deg); }
  }
  @keyframes rise-back {
    from { opacity: 0; transform: translateY(56px) rotate(-7deg); }
    to { opacity: 1; transform: translateY(0) rotate(-7deg); }
  }
  @keyframes settle {
    from { opacity: 0; translate: 0 -14px; }
    to { opacity: 1; translate: 0 0; }
  }
}

/* Section intro */

.section-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.howto h2,
.closing h2 {
  font-size: clamp(32px, 7.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.section-head p {
  margin-top: 14px;
  margin-inline: auto;
  max-width: 46ch;
  text-wrap: pretty;
  font-size: 18px;
  color: var(--ink-soft);
}

.inside {
  padding: 16px 0 0;
}

.inside + .feature {
  padding-top: 52px;
}

/* Feature rows */

.feature {
  padding: 56px 0;
}

.feature-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature h3 {
  font-size: clamp(27px, 6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.014em;
}

.feature-copy > p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media .phone {
  --w: clamp(220px, 61vw, 290px);
}

.plus-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--jade-deep);
}

.plus-note svg {
  flex: none;
  width: 20px;
  height: 20px;
}

/* Learn: the twelve lessons as a syllabus. */

.syllabus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 20px;
  list-style: none;
  counter-reset: lesson;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.syllabus li {
  counter-increment: lesson;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.syllabus li::before {
  content: counter(lesson);
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 31px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--paper), #efe6d3);
  border: 1px solid #e2d8c2;
  box-shadow: 0 2px 0 #e6dcc6;
  font: 600 13px/1 var(--sans);
  color: var(--jade-deep);
}

.syllabus li:nth-child(3n + 1)::before { color: var(--dot); }
.syllabus li:nth-child(3n + 2)::before { color: var(--crak); }
.syllabus li:nth-child(3n)::before { color: var(--bam); }

.drills-line {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* The card band */

.band-card {
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgb(255 253 247 / 0.7), transparent 70%),
    var(--jade-soft);
}

.legend {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 16px;
  background: rgb(255 253 247 / 0.82);
  border: 1px solid rgb(31 111 92 / 0.14);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.4;
}

.legend-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.legend-art img {
  width: 28px;
  height: auto;
  display: block;
}

.legend-art .ghost {
  display: block;
  width: 28px;
  height: 37px;
  border: 1.5px dashed #8b8f96;
  border-radius: 5px;
  background: rgb(255 253 247 / 0.6);
  position: relative;
}

.legend-art .ghost img {
  position: absolute;
  inset: 1px;
  width: calc(100% - 2px);
  opacity: 0.32;
}

.legend-art.joker-line {
  position: relative;
  padding-bottom: 8px;
}

.legend-art.joker-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--gold);
}

.togo {
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.togo b {
  font-size: 26px;
  font-weight: 700;
  color: var(--jade-deep);
  margin-right: 3px;
}

.honest {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.honest svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--jade);
}

/* Practice on felt */

.band-felt {
  position: relative;
  color: var(--on-felt);
  background:
    radial-gradient(ellipse 50% 45% at 25% 75%, rgb(255 236 180 / 0.09), transparent 70%),
    radial-gradient(ellipse 120% 120% at 30% 30%, var(--jade), var(--jade-deep) 65%, var(--jade-night));
  overflow: hidden;
}

.band-felt::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.band-felt .wrap {
  position: relative;
}

.band-felt h3 {
  color: var(--on-felt);
}

.band-felt .feature-copy > p {
  color: var(--on-felt-soft);
}

.band-felt .phone {
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    0 40px 70px -26px rgb(0 0 0 / 0.6),
    0 14px 26px -14px rgb(0 0 0 / 0.45);
}

.modes {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(255 253 247 / 0.18);
}

.modes li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 253 247 / 0.18);
}

.modes img {
  width: 40px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.25));
}

.modes h4 {
  margin: 0;
  font: 600 19px/1.3 var(--display);
  color: var(--on-felt);
}

.modes p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-felt-soft);
}

/* Charleston coach: the three passes */

.passes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 26px 0 0;
  padding: 18px 12px 16px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.passes-title {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.pass {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.pass + .pass::before {
  content: "";
  position: absolute;
  top: 27px;
  right: calc(50% + 34px);
  width: calc(100% - 68px);
  border-top: 2px dotted #c9bea6;
}

.pass-tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 58px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--paper), #efe6d3);
  border: 1px solid #e2d8c2;
  box-shadow: 0 3px 0 #e2d7c0, 0 8px 14px -8px rgb(30 34 41 / 0.3);
}

.pass-tile svg {
  width: 24px;
  height: 24px;
}

.pass:nth-of-type(1) .pass-tile { color: var(--crak); }
.pass:nth-of-type(2) .pass-tile { color: var(--dot); }
.pass:nth-of-type(3) .pass-tile { color: var(--bam); }

/* Game-night Table: a printed menu */

.band-paper {
  background: var(--paper);
  border-block: 1px solid var(--line-soft);
}

.menu {
  margin: 26px 0 0;
  padding: 8px 22px;
  list-style: none;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.menu li {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px dotted #cfc4ab;
}

.menu li:last-child {
  border-bottom: 0;
}

.menu b {
  font: 600 18px/1.3 var(--display);
  color: var(--ink);
}

.menu span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Daily challenge and leaderboard */

.daily {
  margin: 26px 0 0;
  padding: 20px 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.daily-title {
  text-align: center;
  font: 600 18px/1.3 var(--display);
}

.daily-sub {
  margin-top: 2px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.daily ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.daily li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink);
}

.daily li img {
  width: min(48px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 6px rgb(30 34 41 / 0.16));
}

.daily li:nth-child(odd) img {
  transform: rotate(-3deg);
}

.daily li:nth-child(even) img {
  transform: rotate(3deg);
}

.board-line {
  margin-top: 18px;
  color: var(--ink-soft);
}

/* Mahj Mentor Plus */

.plus {
  padding: 8px 0 56px;
}

.plus-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.plus-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 6px 14px -6px rgb(23 82 69 / 0.5);
}

.plus-card h3 {
  font-size: clamp(23px, 5vw, 28px);
  line-height: 1.15;
}

.plus-card p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* How it works: always a left to right row. */

.howto {
  padding: 64px 0;
  background:
    linear-gradient(180deg, transparent, rgb(223 234 227 / 0.55));
}

.howto .section-head p {
  margin-top: 10px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 34px 0 0;
  padding: 22px 8px 20px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 33px;
  right: calc(50% + 33px);
  width: calc(100% - 60px);
  border-top: 2px dashed #c9bea6;
}

.step + .step::after {
  content: "";
  position: absolute;
  top: 29px;
  right: calc(50% + 31px);
  width: 8px;
  height: 8px;
  border-top: 2px solid #b9ad93;
  border-right: 2px solid #b9ad93;
  transform: rotate(45deg);
}

.step-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--paper), #efe6d3);
  border: 1px solid #e2d8c2;
  box-shadow: 0 3px 0 #e2d7c0, 0 10px 18px -10px rgb(30 34 41 / 0.35);
}

.step-tile svg {
  width: 26px;
  height: 26px;
}

.step:nth-child(1) .step-tile { color: var(--dot); }
.step:nth-child(2) .step-tile { color: var(--crak); }
.step:nth-child(3) .step-tile { color: var(--bam); }
.step:nth-child(4) .step-tile { color: var(--jade-deep); }

.step b {
  margin-top: 12px;
  font: 600 15px/1.25 var(--display);
  color: var(--ink);
}

.step-sub {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Closing */

.closing {
  padding: 72px 0 80px;
}

.closing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.fan {
  position: relative;
  width: 150px;
  height: 92px;
  margin-bottom: 18px;
}

.fan img {
  position: absolute;
  bottom: 0;
  width: 56px;
  height: auto;
  filter: drop-shadow(0 8px 8px rgb(30 34 41 / 0.2));
}

.fan img:nth-child(1) { left: 6px; transform: rotate(-14deg); transform-origin: bottom center; }
.fan img:nth-child(2) { left: 47px; bottom: 10px; z-index: 1; }
.fan img:nth-child(3) { right: 6px; transform: rotate(14deg); transform-origin: bottom center; }

.closing p {
  margin-top: 14px;
  max-width: 40ch;
  text-wrap: balance;
  font-size: 18px;
  color: var(--ink-soft);
}

.closing .stores {
  justify-content: center;
  margin-top: 26px;
}

.closing .store {
  min-width: 148px;
}

.closing .contact {
  margin-top: 22px;
  max-width: none;
  font-size: 15px;
}

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: grid;
  gap: 22px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand p {
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--jade-deep);
}

.footer-links .quiet {
  color: #5f656e;
}

/* Documents: privacy, terms, support, delete your data */

main.doc {
  padding: 8px 0 64px;
}

.doc .wrap {
  width: min(780px, 100% - var(--gutter) * 2);
}

.doc-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 22px 36px;
  box-shadow: var(--shadow-card);
}

.doc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--dot) 0 33.3%, var(--crak) 33.3% 66.6%, var(--bam) 66.6%);
  opacity: 0.85;
}

.doc-card h1 {
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

.doc-card h2 {
  margin: 36px 0 8px;
  font-size: clamp(22px, 5vw, 26px);
  line-height: 1.2;
}

.doc-card h3 {
  margin: 22px 0 4px;
  font-size: 19px;
  line-height: 1.3;
}

.doc-card p,
.doc-card li {
  color: var(--ink-soft);
}

.doc-card p {
  margin: 0 0 14px;
}

.doc-card ul,
.doc-card ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc-card li {
  margin-bottom: 8px;
}

.doc-card li::marker {
  color: var(--jade);
}

.doc-card .lede {
  margin: 14px 0 22px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

.doc-card .updated {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}

.doc-back:hover {
  text-decoration: underline;
}

.doc-back svg {
  width: 16px;
  height: 16px;
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
  .step-sub {
    display: block;
  }
  .steps {
    padding: 28px 18px 26px;
    gap: 16px;
  }
  .step b {
    font-size: 18px;
  }
  .step + .step::before {
    top: 36px;
    right: calc(50% + 42px);
    width: calc(100% - 68px);
  }
  .step + .step::after {
    top: 32px;
    right: calc(50% + 40px);
  }
  .step-tile {
    width: 58px;
    height: 74px;
  }
  .step-tile svg {
    width: 30px;
    height: 30px;
  }
  .menu li {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 12px;
  }
  .menu .leader {
    display: block;
    border-bottom: 2px dotted #cfc4ab;
    transform: translateY(-4px);
  }
  .menu li {
    border-bottom: 0;
  }
  .menu span {
    text-align: right;
  }
  .daily li {
    font-size: 14px;
  }
  .doc-card {
    padding: 48px 52px 52px;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .plus-card {
    grid-template-columns: 64px 1fr;
    gap: 22px;
    padding: 28px 32px;
  }
  .plus-card img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 639px) {
  .menu .leader {
    display: none;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }
  .site-header .wrap {
    min-height: 84px;
  }
  .hero {
    padding: 16px 0 88px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: 56px;
  }
  .felt {
    height: 620px;
  }
  .hero .phone-back {
    --w: 238px;
    left: 9%;
    top: 17%;
  }
  .hero .phone-front {
    --w: 272px;
    right: 9%;
    top: 8%;
  }
  .felt .tile {
    width: 60px;
  }
  .inside {
    padding-top: 24px;
  }
  .inside + .feature {
    padding-top: 64px;
  }
  .feature {
    padding: 88px 0;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
  .feature-grid.media-first .feature-media {
    order: -1;
  }
  .feature-copy {
    max-width: 520px;
  }
  .feature-grid:not(.media-first) .feature-media {
    justify-content: center;
  }
  .feature-media .phone {
    --w: 290px;
  }
  .howto {
    padding: 80px 0 88px;
  }
  .closing {
    padding: 96px 0 104px;
  }
  .closing-card {
    padding: 56px 40px 52px;
  }
}

.site-header .brand, .signin { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .brand { font-size: 18px; gap: 8px; }
  .site-header .brand img { width: 32px; height: 32px; }
  .signin { font-size: 14px; padding: 0; }
  .signin svg { display: none; }
}
