/* Shared styles for quietcircle.app (home, about, support).
   Mobile first: base rules target small screens, media queries widen the layout.
   Colours come from the app: background #f8f9fa, primary #023c69, teal from the icon.
   --teal-text is a darker teal so text keeps at least 4.5:1 contrast on white. */

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --primary: #023c69;
  --teal: #2aa8a0;
  --teal-soft: #e6f6f4;
  --teal-text: #00666d;
  --text: #1f2933;
  --muted: #47525d;
  --border: #dde3e8;
  --radius: 12px;
  --max-width: 1040px;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

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

a:hover {
  color: var(--teal-text);
}

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.narrow {
  max-width: 760px;
}

/* Skip link: hidden until focused by keyboard users. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
  outline: 3px solid var(--teal);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

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

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 40px 0 48px;
}

.hero img {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25em;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--teal-text);
  font-weight: 600;
  margin-bottom: 0.75em;
}

.hero .lead {
  max-width: 620px;
  margin: 0 auto 1.25em;
  font-size: 1.05rem;
  color: var(--muted);
}

.availability {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  background: var(--teal-soft);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 500;
}

/* Page heading for inner pages */
.page-heading {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 24px;
}

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

/* Sections */
.section {
  padding: 40px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-intro {
  color: var(--muted);
  max-width: 680px;
}

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

.card h3 {
  margin-bottom: 0.4em;
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.grid > li {
  margin: 0;
}

/* Numbered steps */
.steps {
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-top: 64px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
}

/* Lists with a teal marker */
.check-list,
.cross-list {
  list-style: none;
  padding-left: 0;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.cross-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.check-list li::before {
  content: "\2713";
  color: var(--teal-text);
}

.cross-list li::before {
  content: "\2715";
  color: #8a2c2c;
}

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

/* Plans */
.plan-name {
  font-size: 1.15rem;
}

.plan-allowance {
  margin: 0;
  color: var(--muted);
}

.plan-allowance strong {
  color: var(--text);
}

/* FAQ and support questions */
.faq dt {
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.25em;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0.25em 0 0;
}

.prose h2 {
  margin-top: 1.5em;
}

.prose h3 {
  margin-top: 1.25em;
}

.prose > :first-child {
  margin-top: 0;
}

/* Company details */
.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  margin: 0;
}

.details dt {
  font-weight: 700;
  color: var(--primary);
  margin-top: 12px;
}

.details dt:first-child {
  margin-top: 0;
}

.details dd {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #ffffff;
  padding: 32px 0;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #c8eeea;
}

.site-footer a:focus-visible {
  outline-color: #ffffff;
}

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

.footer-links li {
  margin: 0;
}

@media (min-width: 640px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 56px 0 64px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero img {
    width: 176px;
    height: 176px;
    border-radius: 40px;
  }

  .section {
    padding: 56px 0;
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .details {
    grid-template-columns: max-content 1fr;
  }

  .details dt,
  .details dt:first-child {
    margin-top: 0;
  }
}

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

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
