/* Apperandi — shared styles */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e5e5e5;
  --accent: #008060;
  --accent-hover: #006e52;
  --accent-soft: #e8f5f0;
  --draft: #8a6d00;
  --draft-bg: #fff8e1;
  --draft-border: #f0d78c;
  --radius: 8px;
  --max: 720px;
  --nav-max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--nav-max));
  margin-inline: auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

/* Main */
main {
  padding: 2.5rem 0 3.5rem;
  min-height: 60vh;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero .sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.price-line {
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--text);
}

/* Buttons / CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}

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

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.btn-ghost:hover {
  color: var(--accent-hover);
}

.cta-note {
  display: inline-block;
  padding: 0.625rem 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Sections */
section {
  margin-bottom: 2.25rem;
}

section h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

section p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

section p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

ol.steps,
ul.plain {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

ol.steps li,
ul.plain li {
  margin-bottom: 0.5rem;
}

ul.plain {
  list-style: disc;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.contact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

/* Draft banner (Privacy) */


/* Form */
.form {
  display: grid;
  gap: 1.125rem;
  margin-top: 1rem;
}

.form label {
  display: grid;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.form .hint {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: #c8c8c8;
}

.form-actions {
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
