/* LatchNest web pages (app.latchnest.app). Colours and type follow the LatchNest design (navy, Nunito). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito.woff2") format("woff2"); }

:root {
  --navy: #35557a; --navy-dark: #2a4565; --ink: #1f2933; --muted: #5b6675; --faint: #8a94a3;
  --bg: #f6f7f8; --card: #fff; --line: #e4e7eb; --input: #edf1f6;
  --blue-bg: #e8eef5; --teal-bg: #e3f4f7; --teal: #1d7f8f; --warn-bg: #fcf3dc; --warn: #8a6100;
  --danger: #d12f37; --danger-dark: #b0242b; --danger-bg: #fbe5e6; --ok: #1f8a5b; --ok-bg: #e2f4ea;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--navy); }
.hidden { display: none !important; }

/* ----- header ----- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 19px; text-decoration: none; }
.mark { border-radius: 50%; background: #fbf6ea; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.mark img { width: 88%; height: 88%; object-fit: contain; display: block; }
.logo .mark { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 700; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--navy); }
.nav .getapp { background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px; }
.nav .getapp:hover { color: #fff; background: var(--navy-dark); }
.lg-only { display: none !important; }
@media (min-width: 768px) { .lg-only { display: inline-flex !important; } .sm-only { display: none !important; } }

/* ----- page body ----- */
main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 20px 40px; }
main.wide { max-width: 1120px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
@media (max-width: 520px) { main:not(.wide) .card { border: 0; background: transparent; padding: 4px 0; } }
h1 { font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--navy); margin: 0 0 10px; letter-spacing: -.2px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--navy); margin: 30px 0 10px; }
h3, h4, h5, h6 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 22px 0 8px; }
p { margin: 0 0 14px; color: var(--muted); }
p strong, li strong { color: var(--ink); }
.lead { font-size: 17px; }
.small { font-size: 14px; } .tiny { font-size: 13px; color: var(--faint); }
.center { text-align: center; }
.mt { margin-top: 18px; } .mt-lg { margin-top: 28px; }

/* ----- buttons ----- */
.btn { display: block; width: 100%; text-align: center; text-decoration: none; padding: 14px 18px; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; border: 0; cursor: pointer; margin-top: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.primary { background: var(--navy); color: #fff; } .primary:hover { background: var(--navy-dark); }
.secondary { background: var(--blue-bg); color: var(--navy); }
.danger { background: var(--danger); color: #fff; } .danger:hover { background: var(--danger-dark); }
.link-btn { display: block; text-align: center; margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--navy); background: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: underline; width: 100%; }

/* ----- store buttons (W-01a, W-02a) ----- */
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.store { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none; border-radius: 10px; padding: 8px 14px; min-height: 48px; }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 16px; }
.steps .store span, .store span { color: #fff; }
.store small { font-size: 10px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; opacity: .85; }

/* ----- blocks ----- */
.pill { display: inline-block; background: var(--blue-bg); color: var(--navy); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.box { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 15px; color: var(--ink); }
.box p { margin: 0; color: var(--ink); }
.box .ico { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.box.info { background: var(--blue-bg); } .box.teal { background: var(--teal-bg); } .box.warn { background: var(--warn-bg); } .box.alert { background: var(--danger-bg); }
.box b { font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 18px 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 46px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-bg); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; color: var(--ink); font-weight: 800; }
.steps span { color: var(--muted); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 12px 0 16px; }
.checks li { position: relative; padding: 4px 0 4px 30px; color: var(--ink); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-bg) 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='%231d7f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks li.lock::before { background: var(--warn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='4' y='7' width='8' height='6' rx='1.5' fill='%238a6100'/%3E%3Cpath d='M5.8 7V5.6a2.2 2.2 0 014.4 0V7' fill='none' stroke='%238a6100' stroke-width='1.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks li.off { color: var(--faint); }
.checks li.off::before { background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='2' fill='%238a94a3'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks li.ok { color: var(--ink); }
.rows { border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; overflow: hidden; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; background: #fafbfc; }
.rows div + div { border-top: 1px solid var(--line); }
.rows dt { color: var(--muted); margin: 0; } .rows dd { margin: 0; font-weight: 800; color: var(--ink); text-align: right; }
.badge { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 0 18px; }
.badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.blue { background: var(--blue-bg); color: var(--navy); }
.code { font-size: 22px; letter-spacing: 3px; font-weight: 800; color: var(--ink); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 6px 0 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.kids { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; } .kid { background: var(--blue-bg); color: var(--navy); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; }

/* ----- forms ----- */
label { display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin: 18px 0 6px; }
.optional { font-weight: 600; color: var(--faint); }
input[type=email], input[type=password], input[type=text], textarea { width: 100%; padding: 13px 14px; border: 1.5px solid transparent; border-radius: 12px; background: var(--input); font: inherit; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
.field { position: relative; }
.field input { padding-right: 48px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 6px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--danger); flex: none; }
.error { color: var(--danger); font-size: 14px; font-weight: 700; margin-top: 10px; }

/* ----- legal pages (W-04) ----- */
.tabs { display: flex; gap: 4px; background: var(--input); padding: 4px; border-radius: 999px; margin: 0 0 22px; max-width: 360px; }
.tabs a { flex: 1; text-align: center; padding: 9px 12px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px; color: var(--muted); }
.tabs a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.meta { font-size: 14px; color: var(--faint); margin: 0 0 18px; }
.legal { display: grid; gap: 40px; }
.legal .toc { display: none; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 220px minmax(0, 720px); }
  .legal .toc { display: block; position: sticky; top: 24px; align-self: start; }
}
.toc h6 { font-size: 12px; letter-spacing: .8px; color: var(--faint); margin: 6px 0 10px; text-transform: uppercase; }
.toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.toc a:hover, .toc a.on { background: var(--blue-bg); color: var(--navy); }
.doc ul, .doc ol { padding-left: 22px; color: var(--muted); } .doc li { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.doc h2 { scroll-margin-top: 20px; }
.doc code { background: var(--input); padding: 1px 5px; border-radius: 4px; }
.short { background: var(--teal-bg); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.short h2 { margin: 0 0 8px; font-size: 17px; color: var(--teal); }
.short ul { list-style: none; padding: 0; margin: 0; }
.short li { position: relative; padding: 3px 0 3px 26px; color: var(--ink); font-weight: 600; }
.short li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6' fill='none' stroke='%231d7f8f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ----- delete account (W-05) ----- */
.split { display: grid; gap: 28px; }
.split .aside { display: none; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; padding-top: 20px; }
  .split .aside { display: block; }
  .split .intro-sm { display: none; }
}
.deleted { list-style: none; padding: 0; margin: 10px 0 22px; }
.deleted li { position: relative; padding: 8px 0 8px 32px; color: var(--ink); border-bottom: 1px solid var(--line); }
.deleted li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23d12f37' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .8px; color: var(--faint); text-transform: uppercase; margin: 24px 0 4px; }
.card h2.form-title { margin-top: 0; }

/* ----- home ----- */
.hero { text-align: center; padding: 30px 0 10px; }
.hero .mark { width: 96px; height: 96px; margin-bottom: 16px; }
.links { display: grid; gap: 10px; margin-top: 22px; }

/* ----- footer ----- */
footer { border-top: 1px solid var(--line); background: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--navy); }
@media (max-width: 767px) { footer .wrap { flex-direction: column; text-align: center; } footer nav { justify-content: center; } }
.narrow { max-width: 480px; margin: 20px auto 0; }
@media (max-width: 899px) { .split .card { border: 0; background: transparent; padding: 0; } .split .card form > label:first-child { margin-top: 8px; } }
