/* LineSafe website — plain CSS, no build step. */

:root {
  --navy: #0b2a5b;
  --navy-deep: #081f44;
  --green: #0b8a5f;
  --green-bright: #10a36f;
  --blue: #1f6fd1;
  --ink: #16202e;
  --muted: #4a5668;
  --line: #d9e0ea;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --grid: #e8edf4;
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

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

a {
  color: var(--blue);
  text-underline-offset: 2px;
}

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

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container { padding: 0 32px; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-line { color: var(--navy); }
.brand-safe { color: var(--green); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--surface-alt);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--surface-alt);
}

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

.hero {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 64px;
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(11, 42, 91, 0.15);
}

.hero h1 {
  margin-bottom: 0.15em;
}

.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1em;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--navy);
  /* .button is also used on a real <button> (the disabled "Buy" control) --
     these three reset the native button chrome/font so it renders
     identically to the <a>-based buttons elsewhere on the site. */
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--surface-alt);
}

/* Profile illustration */

.profile-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(11, 42, 91, 0.08);
}

.profile-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 44em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

/* Feature grid */

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--green);
}

.card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.card li + li {
  margin-top: 4px;
}

.card li::marker {
  color: var(--green);
}

/* Workflow */

.workflow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

@media (min-width: 820px) {
  .workflow {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.workflow li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.workflow li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.workflow strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.workflow span {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 819px) {
  .workflow li + li::after {
    content: "";
    position: absolute;
    top: -13px;
    left: 32px;
    width: 2px;
    height: 12px;
    background: var(--green);
  }
}

@media (min-width: 820px) {
  .workflow li { margin-right: 28px; }
  .workflow li:last-child { margin-right: 0; }

  .workflow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -24px;
    width: 20px;
    height: 2px;
    background: var(--green);
  }

  .workflow li:not(:last-child) > .arrow-head {
    position: absolute;
    top: calc(50% - 5px);
    right: -26px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--green);
  }
}

.note {
  border-left: 4px solid var(--green);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  margin-top: 32px;
}

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

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 820px;
}

@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--navy);
  border-width: 2px;
  box-shadow: 0 2px 10px rgba(11, 42, 91, 0.1);
  position: relative;
}

.price-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.price-card h3 {
  margin-bottom: 4px;
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
}

.price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--muted);
  flex-grow: 1;
}

.price-card li + li {
  margin-top: 6px;
}

.price-card li::marker {
  color: var(--green);
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-disabled:hover {
  background: var(--navy);
  color: #fff;
}

.purchase-status-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Two-column info */

.split {
  display: grid;
  gap: 32px;
}

@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* ---------- Document pages (privacy, support) ---------- */

.page-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}

.page-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.doc {
  max-width: 46em;
  padding: 48px 0 64px;
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin-top: 1.6em;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.summary-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.summary-box h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.summary-box ul {
  margin: 0;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 32px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 1;
}

@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 32px; }
}

.meta-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 24px;
}

.meta-table th,
.meta-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.meta-table th {
  width: 40%;
  color: var(--navy);
  font-weight: 700;
}

.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 32px;
}

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

.email {
  font-family: var(--mono);
  font-weight: 700;
  word-break: break-all;
}

.warning {
  border-left: 4px solid #b7791f;
  background: #fff8eb;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
}

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

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

.site-footer {
  background: var(--navy-deep);
  color: #c9d4e5;
  padding: 32px 0;
  font-size: 0.925rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link { display: none; }
  .site-header { position: static; }
}
