/* NotaryOps theme: palette drawn from the logo (indigo -> blue -> cyan on deep navy). */
:root {
  --navy: #0b1b3f; --fg: #16213e; --muted: #5b6785; --line: #e3e8f4; --line-strong: #cfd8ec;
  --bg: #f5f7ff; --card: #ffffff; --tint: #eef2ff;
  --indigo: #4338ca; --blue: #2563eb; --cyan: #06b6d4; --brand: var(--blue);
  --gradient: linear-gradient(120deg, var(--indigo) 0%, var(--blue) 50%, var(--cyan) 100%);
  --danger: #dc2626; --danger-2: #e11d48;
  --notice-bg: #ecfdf5; --notice-fg: #065f46; --notice-line: #34d399;
  --alert-bg: #fef2f2; --alert-fg: #991b1b; --alert-line: #f87171;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(37, 56, 150, .22);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px -16px rgba(37, 56, 150, .35);
  --ring: 0 0 0 4px rgba(37, 99, 235, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(6, 182, 212, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(67, 56, 202, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--indigo); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 800; margin: .4em 0 .5em; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .35em; }
::selection { background: rgba(37, 99, 235, .18); }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 6px; }

/* Navigation: frosted, sticky */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between;
  padding: 10px max(16px, calc((100% - 1080px) / 2));
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(207, 216, 236, .7);
}
.nav .brand { display: flex; align-items: center; }
.nav .brand img { display: block; height: 38px; width: auto; }
.nav .links { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; margin: 0 -6px 0 auto; }
.nav .links a, .nav .links .link {
  display: inline-block; padding: 9px 12px; border-radius: 999px; color: var(--fg); font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav .links a:hover, .nav .links .link:hover { background: var(--tint); color: var(--indigo); }
.nav .links a.button { color: #fff; margin-left: 4px; }
.nav form { margin: 0; }

/* Layout */
.container { width: 100%; max-width: 780px; margin: 0 auto; padding: 20px 16px 8px; flex: 1; }
@media (prefers-reduced-motion: no-preference) {
  .page { animation: rise .5s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  padding: 28px max(16px, calc((100% - 1080px) / 2)); margin-top: 40px;
  color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .5);
}
.footer-links { display: flex; gap: 20px; }
.muted { color: var(--muted); }

/* Cards */
.card, .features > div {
  background: var(--card); border: 1px solid rgba(207, 216, 236, .6); border-radius: var(--radius);
  padding: 20px; margin: 16px 0; box-shadow: var(--shadow);
}
.card > h2:first-child { margin-top: 0; }

/* Forms */
label { display: block; margin: 14px 0; font-weight: 600; font-size: .95rem; color: var(--navy); }
label .muted, label small { font-weight: 500; }
label small { display: block; margin-top: 6px; font-size: .82rem; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; padding: 12px 14px; margin-top: 6px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--fg);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
input::placeholder { color: #9aa5c0; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: #b5c3e3; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235b6785' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--blue); }
input[type=file] { padding: 10px; font-size: .9rem; }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tint); color: var(--indigo); font: inherit; font-weight: 700;
}
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.card { padding: 20px; }
legend { font-weight: 800; font-size: 1.1rem; color: var(--navy); padding: 0 6px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin: 14px 0; }
.row > label { margin: 0; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; color: #fff; text-decoration: none;
  background: var(--gradient); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-position .4s var(--ease);
}
.button:hover { color: #fff; transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 12px 26px -10px rgba(37, 99, 235, .85); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button.small { padding: 8px 16px; font-size: .9rem; }
.button.big { display: flex; width: 100%; padding: 18px; font-size: 1.1rem; margin: 18px 0; letter-spacing: .01em; }
.button.danger { background: linear-gradient(120deg, var(--danger), var(--danger-2)); box-shadow: 0 8px 20px -10px rgba(220, 38, 38, .8); }
.button.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line-strong); box-shadow: none; }
.button.ghost:hover { color: var(--indigo); border-color: #b5c3e3; background: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Messages */
.notice, .alert { padding: 12px 16px; border-radius: var(--radius-sm); border-left: 4px solid; font-weight: 500; }
.notice { background: var(--notice-bg); color: var(--notice-fg); border-color: var(--notice-line); }
.alert { background: var(--alert-bg); color: var(--alert-fg); border-color: var(--alert-line); }
.didit-status:empty { display: none; }
.didit-status.muted { border: 0; padding: 0; }

/* Journal */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.toolbar input { flex: 1; min-width: 200px; margin: 0; }
.toolbar form { margin: 0; }
.journal-filters .date-filter { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; }
.journal-filters .date-filter input { flex: 0 1 auto; min-width: 0; width: auto; }
.entry {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; margin: 10px 0;
  background: var(--card); border: 1px solid rgba(207, 216, 236, .6); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.entry:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(37, 99, 235, .25); }
.entry strong { color: var(--navy); }
.signature {
  display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; margin-top: 6px;
  background: #fff linear-gradient(to top, transparent 22%, rgba(37, 99, 235, .12) 22%, rgba(37, 99, 235, .12) calc(22% + 1px), transparent calc(22% + 1px));
  border: 1.5px dashed #b5c3e3; border-radius: var(--radius-sm); touch-action: none;
}
.photo { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.captcha { display: block; margin: 8px 0; border-radius: 10px; border: 1px solid var(--line); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.details dt { font-weight: 700; color: var(--navy); }
.details dd { margin: 0; overflow-wrap: anywhere; }
details.confirm { margin: 12px 0; }
details.confirm summary { list-style: none; display: inline-flex; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] > :not(summary) { animation: rise .3s var(--ease) both; }
.install-steps { padding-left: 22px; }
.install-steps li { margin: 8px 0; }
.install-steps li::marker { color: var(--blue); font-weight: 800; }

/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; display: block; overflow-x: auto;
  background: var(--card); border: 1px solid rgba(207, 216, 236, .6); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8faff; }
tr:last-child td { border-bottom: 0; }

/* Landing page */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hero {
  position: relative; overflow: hidden; margin-top: -20px; padding: 64px 16px 110px; text-align: center;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(99, 102, 241, .22), transparent 70%),
    radial-gradient(700px 360px at 85% 10%, rgba(6, 182, 212, .22), transparent 70%),
    linear-gradient(180deg, #f1f4ff 0%, #dfe7ff 100%);
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-logo { display: block; width: min(340px, 80%); height: auto; margin: 0 auto;
  animation: logo-arrive 1.4s cubic-bezier(.16, 1, .3, 1) both; }
/* Slides in from the left while spinning, then settles. */
@keyframes logo-arrive {
  0% { opacity: 0; transform: translateX(-60vw) rotate(-720deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.035em; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-actions .button { padding: 15px 28px; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 28px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.chips span::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 6px; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.wave path { fill: var(--bg); }
.section { max-width: 1080px; margin: 0 auto; padding: 8px 16px 32px; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.section-title p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; padding: 20px 16px; text-align: center; background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(207, 216, 236, .6); box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8); }
.steps strong { display: block; color: var(--navy); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .9rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.features > div { margin: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.features > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.features p { margin: 0; color: var(--muted); }
.feature-group { margin: 44px 0 16px; }
.legal { max-width: 760px; margin: 0 auto; line-height: 1.65; }
.legal h2 { margin: 36px 0 10px; font-size: 1.25rem; }
.legal h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 6px 0; }
.doc-tabs { display: flex; gap: 6px; margin: 8px 0 18px; border-bottom: 1px solid var(--line); }
.doc-tabs a { padding: 8px 14px; border-radius: 10px 10px 0 0; text-decoration: none; color: var(--muted); }
.doc-tabs a[aria-current=page] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 currentColor; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 8px; font-size: .92rem; }
.docs h2 { scroll-margin-top: 90px; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(67, 56, 202, .12), rgba(6, 182, 212, .16)); color: var(--indigo); }
.icon svg { width: 24px; height: 24px; }
.cta { text-align: center; padding: 44px 24px; border-radius: 28px; color: #fff; background: var(--gradient);
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .9); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .25), transparent); pointer-events: none; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; }
.cta p { opacity: .9; margin: 0 auto 22px; max-width: 520px; }
.cta .button { background: #fff; color: var(--indigo); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.cta .button:hover { color: var(--blue); }

/* Installed app (PWA): no marketing nav on logged-out screens such as login. */
/* Must beat ".nav .links a { display: inline-block }", hence the full selector. */
@media (display-mode: standalone) { .nav.public, .nav .links a.nav-mobile-app { display: none; } }
.installed-app .nav.public, .installed-app .nav .links a.nav-mobile-app { display: none; }

/* Phones */
@media (max-width: 600px) {
  .card, fieldset.card { padding: 16px; }
  .nav .links a, .nav .links .link { padding: 9px 10px; }
  .hero { padding: 44px 16px 100px; }
  .footer { justify-content: center; text-align: center; }
  /* Tables become stacked cards; each cell shows its column name. */
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack { background: none; overflow: visible; border: 0; box-shadow: none; }
  table.stack th, table.stack tr:has(th) { display: none; }
  table.stack tr { background: var(--card); border: 1px solid rgba(207, 216, 236, .6); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); margin: 10px 0; padding: 10px 14px; }
  table.stack td { border: 0; padding: 4px 0; white-space: normal; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy); }
  table.stack td:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 8px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px rgba(11, 27, 63, .06); }
.plan.featured { border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(47, 84, 212, .16); }
.plan h2 { margin: 0; }
.plan .price { margin: 10px 0 4px; color: var(--navy); }
.plan .price strong { font-size: 2.6rem; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); margin-left: 4px; }
.plan .includes { margin: 0 0 6px; }
.plan ul { padding-left: 1.2rem; margin: 8px 0 18px; flex: 1; }
.plan li { margin: 6px 0; }
.plan .button { align-self: flex-start; }
.fine-print { margin-top: 28px; font-size: .9rem; text-align: center; }
