/* The colours, sizes and radii are the app's (ios/CopyCat/Views/Colors.swift and the CopyCat design system). */
:root {
  --purple: #a35785;
  --purple-deep: #573449;
  --purple-tint: #f5e5f0;
  --purple-panel: rgba(163, 87, 133, 0.07);
  --lilac: #dac0d0;
  --ink: #23233c;
  --text: #000000;
  --text-secondary: rgba(60, 60, 67, 0.6);
  --surface: #ffffff;
  --surface-page: #f8f8f8;
  --divider: rgba(60, 60, 67, 0.29);
  --hairline: rgba(60, 60, 67, 0.18);
  --shadow-card: 0 0 5px rgba(112, 112, 112, 0.48);
  --radius: 12px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}

a { color: var(--purple); }
a:hover { color: var(--purple-deep); }
h1, h2, h3, h4, p, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; }
.note { font-size: 13px; line-height: 18px; color: var(--purple-deep); }
.small { font-size: 15px; }
.label { font-size: 17px; font-weight: 600; color: var(--purple-deep); }
.page-grey { background: var(--surface-page); }
.band { background: var(--purple-panel); }

/* Titles are large and not bold, as the welcome and the book titles are in the app. */
.title { font-weight: 400; color: var(--purple); line-height: 1.15; font-size: clamp(28px, 3.4vw, 40px); }
.title-hero { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.08; letter-spacing: -0.01em; }
.title-page { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
.title-sub { font-size: 28px; line-height: 1.2; }
.heading { font-size: 20px; font-weight: 700; color: var(--ink); }
.subheading { font-size: 17px; font-weight: 600; color: var(--ink); }

.button {
  display: inline-block;
  background: var(--purple);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
}
.button:hover { background: var(--purple-deep); color: #ffffff; }
.button-small { padding: 11px 20px; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); font-size: 20px; font-weight: 700; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.site-nav a:not(.button), .site-footer nav a { color: var(--purple-deep); text-decoration: none; padding: 11px 0; }
.site-nav a:not(.button):hover, .site-footer nav a:hover { color: var(--purple); }
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 56px;
}
.site-footer .credits { flex: 1 1 380px; min-width: 0; max-width: 520px; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.site-footer nav a { text-decoration: underline; }

/* A section with words on one side and a screenshot on the other */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-top: 96px; padding-bottom: 96px; }
.split.reverse { flex-wrap: wrap-reverse; }
.split > .words { flex: 1 1 460px; min-width: 0; gap: 24px; }
.split > .shot { flex: 0 1 300px; min-width: 0; margin: 0 auto; }
.phone { width: 100%; border-radius: 38px; border: 1px solid var(--divider); }
.intro { gap: 12px; max-width: 640px; }

.hero { padding-top: 72px; padding-bottom: 88px; }
.hero .words { align-items: flex-start; }
.hero .lead { font-size: 20px; max-width: 520px; }
.hero .shot { flex-basis: 320px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }

/* The sentence as the app shows it: stressed syllables bold, weak words grey */
.sentence { padding-top: 72px; padding-bottom: 72px; gap: 28px; }
.sentence .line { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.2; max-width: 980px; }
.sentence .line b { font-weight: 700; }
.weak { color: var(--text-secondary); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 15px; color: var(--purple-deep); }
.legend b { color: var(--text); }
.legend .weak { font-size: 17px; }

.how { padding-top: 96px; padding-bottom: 96px; gap: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 48px 40px; }
.step { gap: 20px; }
.step .phone { max-width: 280px; border-radius: 36px; }
.step .words { gap: 6px; }
.step-title { display: flex; align-items: center; gap: 12px; }
.badge {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: var(--purple-tint);
  color: var(--purple-deep);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel { background: var(--purple-panel); border-radius: var(--radius); padding: 20px; gap: 6px; }
.panel.white { background: var(--surface); }
.panel.wide { padding: 28px 32px; flex-direction: row; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; }
.panel.wide > h3 { flex: 0 1 300px; }
.panel.wide > p { flex: 1 1 420px; min-width: 0; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.levels { gap: 10px; max-width: 520px; }
.level { padding: 14px; display: flex; align-items: center; gap: 14px; }
.level-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--radius);
  background: var(--purple-tint);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 17px;
}
.level-icon i { width: 6px; border-radius: 1px; background: var(--lilac); }
.level-icon i:nth-child(1) { height: 8px; }
.level-icon i:nth-child(2) { height: 14px; }
.level-icon i:nth-child(3) { height: 21px; }
.level-icon i.on { background: var(--purple); }
.level-name { font-size: 20px; line-height: 25px; font-weight: 700; color: var(--ink); }

.my-lessons { padding-top: 96px; gap: 12px; }
.my-lessons .title { max-width: 720px; }
.my-lessons p { max-width: 640px; }
.from-text { padding-top: 64px; padding-bottom: 80px; }
.from-recording { padding-top: 80px; padding-bottom: 80px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }

.price { padding-top: 96px; padding-bottom: 96px; gap: 40px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.pack { padding: 24px; gap: 4px; }
.pack .amount { font-size: 30px; line-height: 36px; color: var(--purple); }

.promise { display: flex; flex-wrap: wrap; gap: 32px 72px; padding-top: 96px; padding-bottom: 96px; }
.promise > h2 { flex: 1 1 340px; min-width: 0; }
.promise > .words { flex: 1 1 460px; min-width: 0; gap: 16px; }
.promise a { align-self: flex-start; font-weight: 600; padding: 11px 0; }

.closing { padding-top: 88px; padding-bottom: 88px; align-items: center; gap: 24px; text-align: center; }
.closing img { width: 88px; height: 88px; border-radius: 20px; }
.closing .title { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }

/* Privacy and support */
.article { padding-top: 72px; padding-bottom: 96px; gap: 48px; line-height: 1.55; }
.article section { gap: 12px; }
.article ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article ul b { font-weight: 600; color: var(--ink); }
.summary { padding: 28px 32px; gap: 12px; }
.table-box { overflow-x: auto; margin: 5px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; }
thead th { font-weight: 600; color: var(--purple-deep); }
tbody th { font-weight: 600; color: var(--ink); width: 26%; }
tbody tr { border-top: 1px solid var(--divider); }
td:last-child, thead th:last-child { width: 16%; }

.help { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; padding-top: 72px; padding-bottom: 96px; line-height: 1.55; }
.help > .contact { flex: 1 1 340px; min-width: 0; gap: 24px; }
.help > .questions { flex: 999 1 480px; min-width: 0; gap: 16px; }
.rows > * { padding: 20px; gap: 4px; }
.rows > * + * { border-top: 1px solid var(--divider); }
.rows .button { align-self: flex-start; margin-top: 8px; }

.missing { padding-top: 120px; padding-bottom: 160px; gap: 20px; align-items: flex-start; }
