/* Kuapy public pages (/, the landing page, legal pages). Same tokens, fonts
   and components as the app (web/frontend/style.css); mobile first. */

@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
/* Georgia scaled to Source Serif 4's metrics, so text does not re-wrap when the
   web font arrives. local() makes no request. */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia");
  font-weight: 400;
  size-adjust: 101%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 600 700;
  size-adjust: 88%;
}
/* Only the glyphs of the Google button labels. */
@font-face {
  font-family: "Google Sans";
  src: url("fonts/google-sans-button.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fafaf7;
  --card: #fff;
  --ink: #1c1b1b;
  --muted: #434655;
  --secondary: #5e5e5e;
  --blue: #0037b1;
  --blue-soft: #dce1ff;
  --low: #f6f3f2;
  --surface: #f0edec;
  --line: #e7e5e4;
  --outline: #747686;
  --focus: #1f4fd8;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --shadow: 0 1px 2px #0000000d;
}

/* ---- base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4,
p,
figure,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3,
h4,
strong,
b {
  font-weight: 600;
}
ol,
ul {
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}
a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
#main:focus {
  outline: none;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--card);
  font: 600 14px/20px var(--sans);
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}
.wrap {
  width: 100%;
  max-width: 736px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---- type ---- */
.eyebrow {
  font: 600 11px/16px var(--sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.hero-title {
  font: 600 36px/42px var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin-top: 16px;
  font-size: 19px;
  line-height: 30px;
  color: var(--muted);
}
.section-title {
  font: 600 28px/34px var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-intro {
  margin-top: 12px;
  font-size: 17px;
  line-height: 27px;
  color: var(--muted);
}

/* ---- masthead (the app's top bar, static) ---- */
.masthead {
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand-text {
  min-width: 0;
}
.brand-title {
  display: flex;
  gap: 6px;
  align-items: baseline;
  white-space: nowrap;
  font: 600 19px/24px var(--serif);
  letter-spacing: -0.4px;
}
.brand-title small {
  font: 600 11px/16px var(--sans);
  letter-spacing: 0.6px;
  color: var(--blue);
}
.brand-subtitle {
  display: block;
  font: 600 11px/16px var(--sans);
  color: var(--muted);
}
.masthead-sign-in {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 600 14px/20px var(--sans);
  text-decoration: none;
}
.masthead-sign-in:hover {
  background: #e5e2e1;
}

/* ---- panels ---- */
.panel {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 16px;
}

/* ---- sign in: the Google button with its consent line under it ---- */
.sign-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.consent {
  max-width: 520px;
  font: 500 13px/20px var(--sans);
  color: var(--secondary);
}

/* ---- hero ---- */
.hero {
  padding-block: 40px 56px;
}
.hero .sign-in {
  margin-top: 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--muted);
  font: 500 13px/18px var(--sans);
}
.chips .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  color: var(--blue);
}

/* ---- Google button: official configurator CSS, light theme, as a link ---- */
.gsi-material-button {
  -webkit-user-select: none;
  user-select: none;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  height: 40px;
  max-width: 400px;
  min-width: min-content;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid #747775;
  border-radius: 4px;
  background-color: #fff;
  color: #1f1f1f;
  font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif;
  letter-spacing: 0.25px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
  transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
}
.gsi-material-button-icon {
  height: 20px;
  width: 20px;
  min-width: 20px;
  margin-right: 10px;
}
.gsi-material-button-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}
.gsi-material-button-content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  width: 100%;
}
.gsi-material-button-contents {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.gsi-material-button-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.218s;
}
.gsi-material-button:hover {
  text-decoration: none;
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.gsi-material-button:active .gsi-material-button-state,
.gsi-material-button:focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 0.12;
}
.gsi-material-button:hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 0.08;
}

/* ---- sections ---- */
.section {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}

/* ---- example edition (mirrors the app's Today and Videos screens) ---- */
.edition {
  margin-top: 28px;
  padding: 16px 12px 20px;
  border-radius: 16px;
  background: var(--low);
}
.edition-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 16px;
  font: 500 13px/20px var(--sans);
  color: var(--muted);
}
.edition-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--blue);
}
.edition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 10px;
  border-bottom: 3px double var(--ink);
}
.edition-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.edition-mark {
  width: 24px;
  height: 24px;
}
.edition-head .brand-title {
  font-size: 17px;
}
.edition-tag {
  font: 600 12px/16px var(--sans);
  color: var(--muted);
  white-space: nowrap;
}
.edition-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.category-card,
.video-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.category-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/16px var(--sans);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 100%;
  background: currentColor;
}
.synthesis-label {
  margin-top: 16px;
  font: 600 11px/16px var(--sans);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--secondary);
}
.category-intro {
  margin-top: 6px;
  color: var(--muted);
}
.editorial-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}
.editorial-bullets li,
.insights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.editorial-bullets li {
  line-height: 26px;
}
.editorial-bullets li::before,
.insights li::before {
  content: "\2022";
  flex-shrink: 0;
  color: var(--blue);
  font-size: 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/18px var(--sans);
  color: var(--secondary);
}
.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 100%;
  background: var(--blue-soft);
  color: #001551;
  font: 700 11px/16px var(--sans);
}
.video-title {
  margin-top: 10px;
  font: 600 21px/28px var(--serif);
}
.video-cover {
  width: 100%;
  margin-top: 12px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--surface);
  object-fit: cover;
}
.video-intro {
  margin-top: 12px;
  font-style: italic;
  line-height: 24px;
  color: var(--muted);
}
.insights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--low);
  list-style: none;
}
.insights li {
  font-size: 15px;
  line-height: 22px;
}
.edition-more {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font: 600 12px/16px var(--sans);
  letter-spacing: 0.4px;
  color: var(--secondary);
  text-align: center;
}
.edition-more::before,
.edition-more::after,
.imprint-title::before,
.imprint-title::after {
  content: "";
  width: 40px;
  height: 1px;
  flex-shrink: 0;
  background: var(--outline);
  opacity: 0.4;
}

.section-cta {
  margin-top: 32px;
  font: 600 20px/27px var(--serif);
  text-wrap: balance;
}
.section-cta + .sign-in {
  margin-top: 16px;
}

/* ---- how it works ---- */
.steps {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  list-style: none;
}
.steps li {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.step-number {
  display: block;
  font: 600 32px/36px var(--serif);
  color: var(--blue);
}
.step-title {
  margin-top: 8px;
  font: 600 20px/27px var(--serif);
}
.steps p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 26px;
}

/* ---- plans (cards like the example edition's) ---- */
.plans {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  list-style: none;
}
.plan {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.plan-name {
  font: 600 20px/27px var(--serif);
}
.plan-limits {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}
.plan-limits li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  line-height: 24px;
}
.plan-limits .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  stroke-width: 2.2;
  color: var(--blue);
}
.plans-note {
  margin-top: 24px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

/* ---- privacy and trust ---- */
.scope {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  font-size: 19px;
  line-height: 30px;
}
.safe-sync {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 14px 12px;
  border-radius: 8px;
  background: var(--low);
  box-shadow: var(--shadow);
}
.safe-sync-icon {
  display: flex;
  margin-top: 2px;
  padding: 4px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--blue);
}
.safe-sync-title {
  font: 600 11px/16px var(--sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
}
.safe-sync p + p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}
.trust-items {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  list-style: none;
}
.trust-items li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.trust-title {
  font: 600 18px/26px var(--serif);
}
.trust-items p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 25px;
  color: var(--muted);
}
.limited-use {
  margin-top: 32px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}
.more-link {
  margin-top: 16px;
  font: 600 15px/22px var(--sans);
}
.more-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---- final call to action ---- */
.start-text {
  margin: 12px 0 20px;
  font-size: 17px;
  line-height: 27px;
  color: var(--muted);
}

/* ---- FAQ ---- */
.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  font: 600 18px/26px var(--serif);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  color: var(--blue);
  transition: transform 0.2s;
}
.faq details[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding-bottom: 18px;
  color: var(--muted);
  line-height: 26px;
}
.faq-answer p + p {
  margin-top: 10px;
}

/* ---- footer (the app's imprint) ---- */
.imprint {
  padding-block: 40px 48px;
  border-top: 3px double var(--line);
  text-align: center;
  font: 500 13px/20px var(--sans);
  color: var(--secondary);
}
.imprint p {
  max-width: 560px;
  margin-inline: auto;
}
.imprint p + p {
  margin-top: 8px;
}
.imprint-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: 600 19px/24px var(--serif);
  letter-spacing: -0.4px;
  color: var(--ink);
}
.imprint-tagline {
  color: var(--muted);
}
.imprint-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 12px;
  margin: 12px 0 8px;
  list-style: none;
  font-weight: 600;
}
.imprint-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.imprint-links a:hover {
  text-decoration: underline;
}

/* ---- legal pages ---- */
.legal {
  padding-block: 24px 56px;
}
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font: 600 14px/20px var(--sans);
  text-decoration: none;
}
.back-link .icon {
  width: 18px;
  height: 18px;
}
.legal-title {
  margin-top: 12px;
  font: 600 34px/40px var(--serif);
  letter-spacing: -0.02em;
}
.updated {
  margin-top: 8px;
  font: 500 13px/20px var(--sans);
  color: var(--secondary);
}
.updated span {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
}
.legal-intro {
  margin-top: 20px;
  font-size: 18px;
  line-height: 29px;
}
.toc {
  margin-top: 28px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.toc-title {
  font: 600 11px/16px var(--sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
}
.toc ol {
  margin-top: 8px;
  padding-left: 22px;
  font: 500 14px/20px var(--sans);
}
.toc li::marker {
  color: var(--secondary);
}
.toc a {
  display: block;
  padding-block: 12px;
}
.legal-section {
  margin-top: 40px;
}
.legal-section h2 {
  font: 600 22px/29px var(--serif);
  letter-spacing: -0.01em;
}
.legal-section p,
.legal-section ul,
.legal-intro p + p {
  margin-top: 12px;
}
.legal-section,
.legal-intro {
  line-height: 27px;
}
.legal-section ul {
  padding-left: 22px;
}
.legal-section li + li {
  margin-top: 6px;
}

/* ---- wider screens ---- */
@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }
  .brand-title small {
    letter-spacing: 1px;
  }
  .hero {
    padding-block: 72px 80px;
  }
  .hero-title {
    font-size: 52px;
    line-height: 58px;
  }
  .lede {
    font-size: 21px;
    line-height: 33px;
  }
  .panel {
    padding: 24px;
  }
  .section {
    padding-block: 80px;
  }
  .section-title {
    font-size: 36px;
    line-height: 43px;
  }
  .section-intro,
  .start-text {
    font-size: 19px;
    line-height: 30px;
  }
  .edition {
    padding: 24px;
  }
  .category-card,
  .video-card {
    padding: 24px;
  }
  .category-intro {
    line-height: 26px;
  }
  .video-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    grid-template-areas:
      "meta cover"
      "title cover"
      "intro cover"
      "points points";
    column-gap: 20px;
    align-content: start;
  }
  .card-meta {
    grid-area: meta;
  }
  .video-title {
    grid-area: title;
    font-size: 23px;
    line-height: 31px;
  }
  .video-cover {
    grid-area: cover;
    margin-top: 0;
    align-self: start;
  }
  .video-intro {
    grid-area: intro;
    font-size: 17px;
    line-height: 26px;
  }
  .insights {
    grid-area: points;
    margin-top: 16px;
  }
  .insights li {
    font-size: 16px;
    line-height: 24px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-items {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 28px;
  }
  .legal {
    padding-block: 32px 80px;
  }
  .legal-title {
    font-size: 44px;
    line-height: 52px;
  }
}

/* Precise pointers do not need 44px rows in the long legal contents list. */
@media (min-width: 640px) and (pointer: fine) {
  .toc a {
    padding-block: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
