/* Notebble Support page styles.
   Mobile-first; desktop layout kicks in at >= 900px.
   Self-hosted Plus Jakarta Sans (variable, Latin subset) — one file covers
   weights 400–800, no third-party requests. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src:
    url("assets/fonts/plus-jakarta-sans-latin-variable.woff2")
      format("woff2-variations"),
    url("assets/fonts/plus-jakarta-sans-latin-variable.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e8e4df;
  --surface: #ffffff;
  --surface-muted: #f4f1ec;
  --primary: #f2c94c;
  --on-primary: #2a2a2a;
  --dark: #2a2a2a;
  --text: #2d2d2d;
  --text-2: #5f5b55;
  --text-invert-2: #c9c5be;
  --link: #1b5e4b;
  --link-hover: #123f32;
  --border: #d6d1c6;
  --hairline: #ece8e1;
  --pro-bg: #fcf4db;
  --pro-border: #ebd489;
  --pro-text: #4a3f17;
  --pro-header: #6b5a1e;
  --tint-green-bg: #e7f3ef;
  --tint-green-fg: #1b5e4b;
  --tint-blue-bg: #dbeafe;
  --tint-blue-fg: #1d4ed8;
  --tint-amber-bg: #fff4e5;
  --tint-amber-fg: #b45309;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  --primary-glow: 0 10px 24px rgba(242, 201, 76, 0.45);
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Layout: single column, side-gutter 20px */
.wrap {
  padding-left: 20px;
  padding-right: 20px;
}

/* Anchor offset so headings clear the top when jumped-to */
[id] {
  scroll-margin-top: 24px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.brand span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.site-nav {
  display: none;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.contact-pill:hover {
  color: var(--text);
  background: #faf7f2;
}

/* ---------- Hero ---------- */

.hero {
  padding: 12px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.hero p.lede {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-2);
  max-width: 60ch;
}

.trust-points {
  display: none;
  gap: 24px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  padding: 0;
}
.trust-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-points .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--link);
}

/* ---------- Contact card ---------- */

.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.contact-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--pro-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-2);
  text-transform: uppercase;
}
.contact-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.contact-card p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-2);
}
.email-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  word-break: break-all;
}
.email-link:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--primary-glow);
}
.btn--primary:hover {
  color: var(--on-primary);
  filter: brightness(1.02);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
}
.btn--outline:hover {
  color: var(--text);
  background: var(--surface-muted);
}
.btn--full {
  width: 100%;
}

.note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
}
.note strong {
  color: var(--text);
}

.note--yellow {
  background: var(--pro-bg);
  border: 1px solid var(--pro-border);
  color: var(--pro-text);
  font-size: 14px;
  line-height: 22px;
}

/* ---------- Popular topics ---------- */

.section-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-2);
  text-transform: uppercase;
}

.popular {
  padding: 0 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popular__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topic {
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.topic:hover {
  color: var(--text);
  background: #fdfcfa;
}
.topic__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topic__icon--green {
  background: var(--tint-green-bg);
}
.topic__icon--blue {
  background: var(--tint-blue-bg);
}
.topic__icon--amber {
  background: var(--tint-amber-bg);
}
.topic__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}
.topic__title {
  font-size: 16px;
  font-weight: 700;
}
.topic__desc {
  font-size: 13px;
  line-height: 19px;
  color: var(--text-2);
}
.topic__chevron {
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */

.faq {
  padding: 0 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__intro {
  display: contents;
}
.faq h2 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: -0.75px;
}
.faq__intro-copy {
  display: none;
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-2);
}
.faq__section-nav {
  display: none;
}
.faq__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq h3 {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-2);
  text-transform: uppercase;
}

.qa {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa h4 {
  margin: 0;
  font-size: 19px;
  line-height: 25px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.qa p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.qa p.tight {
  color: var(--text-2);
}
.qa strong {
  color: var(--text);
}

/* ---------- Safety notice ----------
   Answer to the "medication, health, or other critical reminders" FAQ. Mirrors the in-app
   "Before you start" dialog; the surrounding .qa card supplies the card
   chrome (with a yellow border), so the notice itself has no background or
   side padding. The dialog's icon and title are omitted on the web.
   Selectors are prefixed with .qa to win over the generic .qa p / .qa strong
   rules (including the desktop overrides further down). */

/* Inset shadow instead of border so text stays aligned with the other cards. */
.qa--safety {
  box-shadow:
    inset 0 0 0 2px var(--primary),
    var(--card-shadow);
}
.qa .qa__title--icon {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.qa__icon {
  flex-shrink: 0;
  margin-top: 1px; /* centre the 24px icon on the 25–26px first line */
}
.qa__icon--warning {
  color: var(--tint-amber-fg);
}
.qa .safety-notice {
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-wrap: anywhere;
}
.qa .safety-notice__body {
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
}
.qa .safety-notice__body p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.qa .safety-notice__body strong {
  font-weight: 700;
  color: var(--text);
}
.qa .safety-notice__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qa .safety-notice__list li {
  display: flex;
  gap: 8px;
}
.qa .safety-notice__list li::before {
  content: "•";
  flex-shrink: 0;
}
.qa .safety-notice__body .safety-notice__box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #e8e4df;
}
.qa .safety-notice__body .safety-notice__box + p {
  margin-top: 16px;
}
.qa .safety-notice__body a {
  text-decoration: underline;
}

/* Language switch above the notice (segmented control). */
.lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-muted);
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-2);
  cursor: pointer;
}
.lang-switch__btn:hover {
  color: var(--text);
}
.lang-switch__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 23px;
}
.step__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.breadcrumb .chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
}
.breadcrumb .sep {
  color: var(--text-2);
}

/* Free vs Pro table */
.pro-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  font-size: 14px;
  text-align: left;
  background: var(--surface);
}
.pro-table thead th {
  background: var(--surface-muted);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-2);
  text-transform: uppercase;
  text-align: left;
}
.pro-table thead th.pro {
  color: var(--pro-header);
}
.pro-table tbody td {
  padding: 11px 12px;
  border-top: 1px solid var(--hairline);
  vertical-align: top;
}
.pro-table tbody td.free {
  color: var(--text-2);
}
.pro-table tbody td.pro {
  font-weight: 700;
}
.pro-footnote {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
  margin: 0;
}

/* ---------- Still need help band ---------- */

.stillneed-wrap {
  padding: 0 20px 32px;
}
.stillneed {
  background: var(--dark);
  border-radius: 28px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
}
.stillneed h2 {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
}
.stillneed p {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-invert-2);
}
.stillneed a.mail {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.stillneed a.mail:hover {
  text-decoration: underline;
  color: var(--primary);
}
.stillneed .btn {
  margin-top: 6px;
}

/* ---------- Legal cards ---------- */

.legal {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.legal-card:hover {
  color: var(--text);
  background: #ffffff;
}
.legal-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legal-card__icon--green {
  background: var(--tint-green-bg);
}
.legal-card__icon--amber {
  background: var(--tint-amber-bg);
}
.legal-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}
.legal-card__title {
  font-size: 15px;
  font-weight: 700;
}
.legal-card__desc {
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.site-footer {
  margin: 0 20px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.site-footer__links {
  display: flex;
  gap: 20px;
  font-weight: 600;
  flex-wrap: wrap;
}
.site-footer__links a {
  color: var(--text);
  text-decoration: none;
}
.site-footer__links a:hover {
  text-decoration: underline;
}

/* ---------- Desktop breakpoint ---------- */

@media (min-width: 900px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 24px clamp(24px, 8vw, 120px);
  }
  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .brand span {
    font-size: 20px;
  }

  .contact-pill {
    display: none;
  }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-nav a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }
  .site-nav a[aria-current="page"] {
    background: var(--surface);
    font-weight: 700;
  }
  .site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
  }

  .hero {
    padding: 48px clamp(24px, 8vw, 120px) 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
    align-items: center;
  }
  .hero__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }
  .hero h1 {
    font-size: 60px;
    line-height: 66px;
    letter-spacing: -1.8px;
  }
  .hero p.lede {
    font-size: 18px;
    line-height: 29px;
  }
  .trust-points {
    display: flex;
    flex-wrap: wrap;
  }

  .card,
  .contact-card {
    padding: 32px;
  }

  .popular {
    padding: 0 clamp(24px, 8vw, 120px) 64px;
    display: grid;
    gap: 20px;
    grid-template-columns: 14px 1fr;
    grid-template-areas:
      "label label"
      "cards cards";
  }
  .popular > .section-label {
    grid-area: label;
  }
  .popular__grid {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .topic {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 24px;
    gap: 14px;
  }
  .topic__title {
    font-size: 17px;
  }
  .topic__desc {
    font-size: 14px;
    line-height: 21px;
  }
  .topic__chevron {
    display: none;
  }

  .faq {
    padding: 0 clamp(24px, 8vw, 120px) 64px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .faq__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 20px;
  }
  .faq__intro-copy {
    display: block;
  }
  .faq__section-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
  }
  .faq__section-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
  }
  .faq__section-nav a[aria-current="true"] {
    background: var(--surface);
    font-weight: 700;
  }
  .faq__section-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
  }
  .faq__cards {
    gap: 20px;
  }
  .faq h3 {
    margin: 20px 0 0;
  }
  .qa {
    padding: 32px;
    gap: 18px;
  }
  .qa h4 {
    font-size: 20px;
    line-height: 26px;
  }
  .qa p {
    font-size: 16px;
    line-height: 25px;
  }
  .step {
    font-size: 16px;
    line-height: 24px;
    align-items: center;
    gap: 14px;
  }
  .step__num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .breadcrumb {
    font-size: 13px;
    gap: 8px;
  }
  .breadcrumb .chip {
    padding: 4px 12px;
  }
  .pro-table {
    font-size: 15px;
  }
  .pro-table thead th {
    padding: 12px 18px;
    font-size: 12px;
  }
  .pro-table tbody td {
    padding: 13px 18px;
  }
  .note--yellow {
    padding: 16px 18px;
  }
  .btn--outline {
    align-self: flex-start;
    width: auto;
  }

  .stillneed-wrap {
    padding: 0 clamp(24px, 8vw, 120px) 64px;
  }
  .stillneed {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px 56px;
    border-radius: 30px;
  }
  .stillneed h2 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.75px;
  }
  .stillneed p {
    font-size: 16px;
    line-height: 25px;
  }
  .stillneed .btn {
    margin-top: 0;
    flex-shrink: 0;
    padding: 0 28px;
  }
  .stillneed__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .legal {
    padding: 0 clamp(24px, 8vw, 120px) 64px;
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 20px;
    grid-template-areas:
      "label label"
      "cards cards";
  }
  .legal > .section-label {
    grid-area: label;
  }
  .legal__grid {
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .legal-card {
    padding: 22px 24px;
    border-radius: 18px;
  }
  .legal-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .site-footer {
    margin: 0 clamp(24px, 8vw, 120px);
    padding: 28px 0 40px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 1440px) {
  .site-header,
  .hero,
  .popular,
  .faq,
  .stillneed-wrap,
  .legal {
    padding-left: 120px;
    padding-right: 120px;
  }
  .site-footer {
    margin-left: 120px;
    margin-right: 120px;
  }
}
