/* Kept Texts' website. One font (the system's), flat surfaces, thin rules, one blue. */

:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --card: #ffffff;
  --ink: #111316;
  --soft: #50555d;
  --faint: #686e77;
  --rule: #e3e5e9;
  --accent: #0a64e0;
  --accent-ink: #ffffff;
  --bezel: #0d0e10;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #15181c;
    --card: #181b20;
    --ink: #f2f3f5;
    --soft: #b0b5bd;
    --faint: #8a9099;
    --rule: #2a2e34;
    --accent: #5d9dff;
    --accent-ink: #0e1013;
    --bezel: #2a2e34;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p, li, dd, td { color: var(--soft); }
strong { color: var(--ink); font-weight: 600; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--soft); max-width: 36em; text-wrap: pretty; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
       backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
       border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
@media (prefers-color-scheme: dark) { .logo img { box-shadow: 0 0 0 1px var(--rule); } }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--soft); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .bar nav .wide { display: none; } .bar nav { gap: 18px; } }
@media (max-width: 370px) { .bar nav .tight { display: none; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
       border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
       transition: transform .12s ease, background-color .12s ease; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--ink); color: var(--bg); }
.btn-main:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-line { border-color: var(--rule); color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--faint); }
/* "Coming soon" is a status, not a button, so it has no outline to tap. */
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; color: var(--soft); font-size: 15px; }
.soon svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 18px; letter-spacing: .01em; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); margin: 0; }
.trust svg { width: 16px; height: 16px; color: var(--ink); flex: none; }
.visual { position: relative; min-height: 560px; }
.paper { background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.visual .paper { position: absolute; right: 0; top: 0; width: 72%; }
.phone { background: var(--bezel); padding: 7px; border-radius: 40px; width: 230px; }
.visual .phone { width: 41%; max-width: 220px; }
.phone img { border-radius: 33px; }
.visual .phone { position: absolute; left: 0; bottom: 0; }
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .visual { min-height: 0; aspect-ratio: 1 / 1.04; max-width: 520px; width: 100%; margin: 0 auto; }
  .visual .phone { width: 40%; padding: 5px; border-radius: 28px; }
  .visual .phone img { border-radius: 23px; }
}

/* Sections */
section { padding: 88px 0; }
.alt { background: var(--surface); }
.head { max-width: 720px; margin-bottom: 44px; }
.head p { font-size: 1.1rem; }
@media (max-width: 640px) { section { padding: 64px 0; } .head { margin-bottom: 32px; } }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
       padding: 22px; text-decoration: none; transition: border-color .15s ease; }
.use:hover { border-color: var(--faint); }
.use svg { width: 26px; height: 26px; color: var(--ink); margin-bottom: 16px; }
.use p { font-size: 15.5px; margin-bottom: 18px; }
.use .more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--accent); }
@media (max-width: 960px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { margin: 0; }
.step .phone { width: min(250px, 100%); margin: 0 auto 26px; }
.step h3::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
                   width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; margin-right: 10px; vertical-align: 1px; }
.step p { font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
  .step .phone { width: 150px; margin: 0; padding: 5px; border-radius: 24px; }
  .step .phone img { border-radius: 20px; }
}
@media (max-width: 420px) { .step { grid-template-columns: 112px 1fr; gap: 16px; } .step .phone { width: 112px; } }

/* The PDF */
.pdf-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pages .paper:last-child { margin-top: 48px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { position: relative; padding-left: 30px; margin: 0 0 13px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 16px; height: 16px; border-radius: 50%;
                    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (prefers-color-scheme: dark) { .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230e1013' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.note { font-size: 14.5px; color: var(--faint); }
@media (max-width: 900px) { .pdf-grid { grid-template-columns: 1fr; gap: 40px; } .pages .paper:last-child { margin-top: 28px; } }

/* Two columns of promises */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.panel h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.nots { list-style: none; padding: 0; margin: 0; }
.nots li { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.nots li:first-child { border-top: 0; padding-top: 4px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .panel { padding: 24px; } }

/* Heading on the left, content on the right */
.split { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 56px; align-items: start; }
.split > div:first-child p { margin-top: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }

/* At a glance */
.glance { margin: 0; border-top: 1px solid var(--rule); }
.glance div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.glance dt { font-weight: 600; color: var(--ink); }
.glance dd { margin: 0; }
@media (max-width: 560px) { .glance div { grid-template-columns: 1fr; gap: 4px; } }

/* Price */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.price { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.price .term { font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.price .amount { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 6px; line-height: 1.1; }
.price p:last-child { margin: 0; }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }

/* Questions */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
                      border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-right: 40px; }

/* Guide links */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.links li { margin: 0; border-top: 1px solid var(--rule); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--ink); text-decoration: none; font-weight: 550; }
.links a::after { content: "\2192"; color: var(--faint); }
.links a:hover::after { color: var(--accent); }
.links small { display: block; font-weight: 400; color: var(--soft); font-size: 15px; margin-top: 2px; }
@media (max-width: 720px) { .links { grid-template-columns: 1fr; } }

/* Closing band */
.band { text-align: center; }
.band .actions { justify-content: center; }
.band p { margin-left: auto; margin-right: auto; }

/* Articles: guides, support, privacy */
.article { padding: 48px 0 80px; }
.crumbs { font-size: 14px; margin: 0 0 18px; color: var(--faint); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 48px; }
.article h3 { margin-top: 28px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 8px 0; }
.article ol li::marker { color: var(--ink); font-weight: 600; }
.answer { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0 8px; }
.answer .label { display: block; font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 6px; letter-spacing: .02em; }
.answer p { color: var(--ink); font-size: 1.12rem; line-height: 1.55; margin: 0; }
figure { margin: 32px 0; }
figure .paper, figure .phone { margin: 0 auto; }
figure .paper { max-width: 560px; }
figure .phone { width: 240px; }
figcaption { font-size: 14.5px; color: var(--faint); text-align: center; margin-top: 12px; }
.table { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
th { color: var(--ink); font-weight: 600; }
td:first-child { color: var(--ink); font-weight: 550; }
/* On a phone each row of a table becomes a short stack, so nothing hides off to the side. */
@media (max-width: 600px) {
  .table { overflow: visible; }
  .table table, .table tbody, .table tr, .table td { display: block; min-width: 0; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .table td { border: 0; padding: 2px 0; }
  .table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 600; }
}
.getit { background: var(--surface); border-radius: var(--radius); padding: 26px; margin: 48px 0 0; }
.getit h2 { margin-top: 0 !important; }
.getit .actions { margin-top: 18px; }
.updated { font-size: 14px; color: var(--faint); margin-top: 40px; }
.qa h2 { margin-top: 40px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 44px 0 56px; font-size: 15px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot p { margin: 8px 0 0; max-width: 30em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.fine { font-size: 14px; color: var(--faint); margin-top: 28px !important; max-width: none !important; }
.fine a { color: var(--faint); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
