/* nessie.pet – plain CSS, no build step. Mobile first. */

/* Fraunces is a variable font (SIL OFL 1.1, see fonts/OFL-Fraunces.txt). */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Palette. Contrast ratios (WCAG 2.x) are noted next to each text pair.
   Light theme:
     text #163021 on cream #EDE9DE            11.71:1
     text #163021 on card #F7F5EF             13.03:1
     link #2C5F42 on cream / card             6.13:1 / 6.82:1
     button cream on #2C5F42 (hover #1F4D32)  6.13:1 (7.99:1)
   Dark theme:
     text cream on #163021                    11.71:1
     accent #BAD7C7 on #163021                9.22:1
     card text cream / accent on #1F4D32      7.99:1 / 6.29:1
     button #163021 on #BAD7C7 (hover cream)  9.22:1 (11.71:1)
   Pricing, FAQ and captions reuse these pairs (text / heading / accent on
   --bg, --bg-alt or --card-bg); no new text colours. */
:root {
  --green-primary: #2c5f42;
  --green-deep: #1f4d32;
  --green-dark: #163021;
  --cream: #ede9de;
  --green-light: #bad7c7;
  --cream-light: #f7f5ef;

  --bg: var(--cream);
  --bg-alt: var(--cream-light);
  --text: var(--green-dark);
  --heading: var(--green-dark);
  --accent: var(--green-primary);
  --card-bg: var(--cream-light);
  --card-border: var(--green-light);
  --button-bg: var(--green-primary);
  --button-text: var(--cream);
  --button-bg-hover: var(--green-deep);
  --focus: var(--green-primary);
  --frame: var(--green-dark);
  --frame-edge: var(--green-dark);
  --featured-border: var(--green-primary);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 1rem;
  --max-width: 72rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--green-dark);
    --bg-alt: var(--green-deep);
    --text: var(--cream);
    --heading: var(--green-light);
    --accent: var(--green-light);
    --card-bg: var(--green-deep);
    --card-border: var(--green-primary);
    --button-bg: var(--green-light);
    --button-text: var(--green-dark);
    --button-bg-hover: var(--cream);
    --focus: var(--green-light);
    --frame: #0c1c13;
    --frame-edge: var(--green-primary);
    --featured-border: var(--green-light);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  max-width: 24em;
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
  border-radius: 0.25rem;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip link: off screen until focused. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

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

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.nav-list,
.footer-list,
.card-grid,
.shots,
.plan-grid,
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-list a {
  display: inline-block;
  padding-block: 0.5rem;
  font-weight: 600;
}

/* Hero */
.hero {
  padding-block: 3rem 3.5rem;
}

.hero-lead {
  max-width: 40em;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
}

.store-note {
  margin: 0;
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--button-bg-hover);
  color: var(--button-text);
}

/* Sections */
.section {
  padding-block: 3rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-lead {
  max-width: 40em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

.card p {
  margin: 0;
}

/* Screenshots: a scroll-snap row on small screens, a grid from 48rem.
   The scroller is the only thing that scrolls sideways; the page never does. */
.shots-scroller {
  margin-top: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding: 0.25rem 0.25rem 1rem;
  border-radius: var(--radius);
}

.shots {
  display: flex;
  gap: 1.25rem;
}

.shots > li {
  flex: 0 0 min(15rem, 78%);
  scroll-snap-align: start;
}

.shot {
  margin: 0;
}

/* Pure CSS phone frame around each screenshot. */
.phone {
  background: var(--frame);
  border: 1px solid var(--frame-edge);
  border-radius: 2.25rem;
  padding: 0.6rem;
  max-width: 17rem;
  margin-inline: auto;
  box-shadow: 0 0.75rem 1.5rem -0.75rem rgb(22 48 33 / 0.45);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.7rem;
  background: var(--cream);
}

.shot figcaption {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

/* Pricing */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

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

.plan-featured {
  border: 2px solid var(--featured-border);
  box-shadow: 0 0.5rem 1.5rem -1rem rgb(22 48 33 / 0.5);
}

.plan h3 {
  margin-bottom: 0.25rem;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.plan-tagline {
  font-weight: 600;
}

.plan-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.5em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.plan-trial {
  margin: 1rem 0 0;
  font-style: italic;
}

.pricing-note {
  max-width: 48em;
  margin-top: 1.5rem;
}

/* FAQ: <details>/<summary> works without JavaScript and from the keyboard. */
.faq-list {
  max-width: 48rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-item summary {
  position: relative;
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.5rem 1rem 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Plus sign that turns into a minus when open. */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.875rem;
  height: 2px;
  background: var(--accent);
  transition: transform 0.15s ease;
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  max-width: 42em;
  margin: 0 0 1.25rem;
}

/* Closing call to action */
.cta h2 {
  max-width: 24em;
}

.cta .hero-actions {
  margin-top: 1.25rem;
}

/* Long-form pages (support, privacy, terms, 404). */
.prose {
  padding-block: 2.5rem 3.5rem;
}

.prose > * {
  max-width: 70ch;
}

.prose h1 {
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  margin-top: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.prose p {
  line-height: 1.7;
}

.prose .lead {
  font-size: 1.125rem;
}

.toc {
  margin-block: 2rem 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.prose .toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  padding-block: 0.15rem;
}

.not-found {
  padding-block: 4rem 5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding-block: 2rem;
}

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

.footer-inner p {
  margin: 0;
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-list a {
  display: inline-block;
  padding-block: 0.25rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-block: 5rem 5.5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
  }

  .section {
    padding-block: 4.5rem;
  }

  .shots-scroller {
    overflow: visible;
    padding: 0;
  }

  .shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 64rem) {
  .shots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
