/* ==========================================================================
   TaskLock site styles for the content pages (FAQ, Compare, guides, 404).
   The home page keeps its own inline CSS; tokens and components here match it.
   ========================================================================== */

/* ============================== TOKENS ============================== */
:root {
  --accent: #22A4E3;
  --accent-deep: #1B86BC;
  --link: #1570A3;
  --link-hover: #0F5A85;

  --page: #FFFFFF;
  --surface: #F7F7FA;
  --border: #E5E7EB;
  --text: #111827;
  --text-2: #6B7280;
  --text-3: #9CA3AF;

  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 12px 34px rgba(16, 24, 40, .10);

  --font-head: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: #fff;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 14px;
}

.grad {
  color: var(--accent);
}

/* ============================== BUTTONS / BADGE ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
  transition: background-color .18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

/* Official Apple "Download on the App Store" badge (assets/app-store-badge.svg) */
.appstore-badge {
  display: inline-block;
  border-radius: 11px;
  line-height: 0;
  transition: opacity .18s ease;
}

.appstore-badge img {
  height: 54px;
  width: auto;
}

.appstore-badge:hover {
  opacity: .82;
}

.appstore-badge:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 11px;
}

/* ============================== LOGO / WORDMARK ============================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--accent);
}

.logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  color: var(--text);
}

.logo__text .lk {
  color: var(--accent);
}

/* ============================== HEADER (floating glass bar) ============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 14px;
  transition: padding .3s ease;
}

.header__inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(16, 24, 40, .07);
  transition: box-shadow .3s ease, background .3s ease;
}

.site-header.scrolled .header__inner {
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .13);
}

.header__inner .logo__mark {
  width: 34px;
  height: 34px;
}

.header__inner .logo__text {
  font-size: 1.2rem;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__inner .btn--primary {
  font-size: .9rem;
  padding: .55rem 1.05rem;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 8px;
}

.header__nav a {
  font-weight: 600;
  font-size: .93rem;
  color: var(--text-2);
  padding: 6px 2px;
  transition: color .15s ease;
}

.header__nav a:hover,
.header__nav a[aria-current="page"] {
  color: var(--text);
}

/* ============================== PAGE LAYOUT ============================== */
.page {
  padding: 124px 0 90px;
  background: var(--page);
}

.page__inner {
  max-width: 760px;
  margin: 0 auto;
}


.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  color: var(--text-2);
}

.crumbs li+li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-3);
}

.crumbs a {
  color: var(--text-2);
  transition: color .15s ease;
}

.crumbs a:hover {
  color: var(--text);
}

.page h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.lede {
  margin-top: 18px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}

.meta {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--text-2);
}

.meta a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================== PROSE ============================== */
.prose {
  margin-top: 36px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-2);
}

.prose h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 2.4rem 0 .9rem;
}

.prose h3 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 1.6rem 0 .6rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: .45rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.lede a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Numbered steps */
.steps {
  counter-reset: step;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.2rem;
}

.steps li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 1.1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  display: grid;
  place-items: center;
}

.steps li strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}

/* Small note (e.g. "Last checked") */
.note {
  margin: 1.4rem 0 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: .9rem;
  color: var(--text-2);
}

/* ============================== FAQ ACCORDION ============================== */
.faq-group {
  margin-top: 2.2rem;
}

.faq-group h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 0 0 .5rem;
}

.faq {
  border-top: 1px solid var(--border);
}

.faq:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.35;
  color: var(--text);
  transition: color .15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 6px 4px 0;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.faq[open] summary::after {
  transform: rotate(225deg);
  margin-bottom: -4px;
}

.faq summary:hover {
  color: var(--link);
}

.faq__a {
  padding: 0 2px 18px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
}

.faq__a p {
  margin-bottom: .6rem;
}

.faq__a p:last-child {
  margin-bottom: 0;
}

.faq__a a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================== SECTIONS (compare pages; independent of .prose) ============================== */
.sec {
  margin-top: 2.8rem;
}

.sec > h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.sec > p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-2);
}

.sec a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ============================== COMPARE CARDS (same language as the home feature cards) ============================== */
.cmpcard {
  margin: 0 0 14px;
  padding: 20px 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.cmpcard:last-child {
  margin-bottom: 0;
}

.cmpcard h3 {
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--text);
}

.cmpcard__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cmpcard__side {
  padding: 14px 16px 15px;
  background: #F2F4F7;
  border-radius: 15px;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text);
}

.cmpcard__side--tl {
  background: color-mix(in srgb, var(--accent) 9%, #fff);
}

.cmpcard__side--other {
  color: var(--text-2);
}

.cmpcard__app {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.cmpcard__side--other .cmpcard__app {
  color: var(--text-3);
}

.cmpcard__side strong {
  color: inherit;
  font-weight: 700;
}

/* Reason lists ("Choose X if"): rows inside a grey panel, like the home demos */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.fit {
  margin: 0;
  padding: 20px 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.fit h3 {
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--text);
}

.fit ul {
  margin: 0;
  padding: 10px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #F2F4F7;
  border-radius: 15px;
}

.fit--tl ul {
  background: color-mix(in srgb, var(--accent) 9%, #fff);
}

.fit li {
  margin: 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--text);
}

@media (max-width: 640px) {
  .cmpcard,
  .fit {
    padding: 16px 16px 18px;
    border-radius: 20px;
  }

  .cmpcard__cols,
  .fit ul {
    grid-template-columns: 1fr;
  }
}

/* ============================== CARDS ============================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.prose .cards {
  list-style: none;
  padding: 0;
}

.prose .card,
.prose .card * {
  text-decoration: none;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-2);
}

.card__more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--link);
}

@media (max-width: 800px) {
  .cards,
  .cards--2 {
    grid-template-columns: 1fr;
  }
}

/* ============================== COMPARISON INDEX (one per row) ============================== */
.vslist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.vslist li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vslist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.vslist a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.vslist h3 {
  font-size: 1.08rem;
  margin: 0 0 3px;
  color: var(--text);
}

.vslist h3 em {
  font-style: normal;
  color: var(--text-3);
  font-weight: 700;
  margin: 0 .25em;
}

.vslist p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--text-2);
}

.vslist__go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--link);
  white-space: nowrap;
}

.vslist__go svg {
  width: 14px;
  height: 14px;
}

.vslist a,
.vslist a *,
.sec .vslist a,
.sec .vslist a * {
  text-decoration: none;
}

/* "What sets it apart": a quiet divided list, no boxes */
.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-2);
}

.points li:last-child {
  border-bottom: 1px solid var(--border);
}

.points strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .vslist a {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
  }
}

/* ============================== CTA ============================== */
.cta {
  margin: 2.8rem 0 0;
  padding: 26px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.cta h2 {
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--text);
}

.cta p {
  margin: 0;
  color: var(--text-2);
}

.cta__copy {
  flex: 1 1 320px;
}

/* ============================== iPHONE MOCKUP (same as home) ============================== */
.shot {
  margin: 2rem auto 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shot figcaption {
  font-size: .88rem;
  color: var(--text-2);
  text-align: center;
  max-width: 420px;
}

.phone {
  position: relative;
  width: clamp(230px, 60vw, 258px);
  background: #17181c;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 40px 80px -28px rgba(16, 24, 40, .42), 0 16px 34px -24px rgba(16, 24, 40, .26),
    inset 0 0 0 2px rgba(255, 255, 255, .05);
}

.phone__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 402 / 874;
  border-radius: 35px;
  overflow: hidden;
  background: #000;
}

.phone__island {
  position: absolute;
  top: 2.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3.6%;
  background: #000;
  border-radius: 999px;
  z-index: 6;
}

.phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* ============================== 404 ============================== */
.notfound {
  text-align: center;
  padding-top: 40px;
}

.notfound .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.btn--secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--text-3);
}

/* ============================== FOOTER (minimal) ============================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer__links a {
  color: var(--text-2);
  font-weight: 600;
  font-size: .93rem;
  transition: color .15s ease;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__bar {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--text-3);
  font-size: .85rem;
}

.footer__bar a {
  color: var(--text-3);
  transition: color .15s ease;
}

.footer__bar a:hover {
  color: var(--text);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 560px) {
  .container {
    padding-inline: 20px;
  }

  .page {
    padding: 108px 0 64px;
  }

  .lede {
    font-size: 1.04rem;
  }

  .appstore-badge img {
    height: 52px;
  }

  .cta {
    padding: 22px 20px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__bar {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .header__nav {
    display: none;
  }
}

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

  * {
    transition-duration: .001ms !important;
  }
}
