/* Cheppify website. Matches the app's "Paper" look: cream paper,
   serif headings with an italic accent, teal as the single accent.
   Fonts are self-hosted (fonts/), so visitors make no third-party requests. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --paper: #f8f7f2;
  --card: #ffffff;
  --ink: #15171a;
  --muted: #5d6166;
  --line: #e7e4da;
  --teal: #14b8a6;
  --teal-ink: #0f6e66;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-ink); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Wave mark, used in the header, hero and footer */
.mark { width: 1.6em; height: 1em; color: var(--ink); display: inline-block; vertical-align: middle; }
.mark svg { width: 100%; height: 100%; display: block; }
.mark path { stroke-dasharray: 100; stroke-dashoffset: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 4.25rem; gap: 1rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand .accent { color: var(--teal-ink); }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.site-header nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: #ffffff;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--teal-ink); transform: translateY(-1px); }
.btn-soon { background: var(--line); color: var(--ink); cursor: default; }
.btn-soon:hover { background: var(--line); transform: none; }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-quiet:hover { background: var(--card); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Hero */
.hero { text-align: center; padding: 5rem 0 4rem; }
.hero .mark { width: 3.2em; height: 2em; color: var(--teal-ink); }
.hero .mark path { stroke-dasharray: 100; animation: draw 1.4s ease-out both; }
.home-page .site-header .mark path { animation: homepage-wave 5s ease-in-out infinite; }
@keyframes homepage-wave {
  0% { stroke-dashoffset: 100; }
  28%, 86% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); margin: 0.6rem auto 0.9rem; max-width: 14ch; }
.hero h1 .accent { font-style: italic; color: var(--teal-ink); }
.tagline {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero .fine { margin: 1.2rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* Sections */
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 0.6rem; }
.section-head h2 em { font-style: italic; color: var(--teal-ink); }
.section-head p { margin: 0; color: var(--muted); }

/* Demo */
.launch-hero { display: grid; gap: 2rem; align-items: center; }
.launch-hero h1 { max-width: 18ch; font-size: clamp(2.8rem, 6vw, 4.8rem); }
.home-page,
.home-page .site-header { background: #fff; }
.home-page .site-header .brand .accent { border-bottom: 1px solid currentColor; }
.launch-hero .eyebrow {
  display: inline-block;
  border-inline-start: 2px solid var(--teal-ink);
  padding-inline-start: 0.6rem;
}
.launch-hero h1 em { display: block; }
.launch-hero .tagline { max-width: 43ch; }
.app-preview { margin: 0; text-align: center; }
.app-preview a {
  display: inline-block;
  box-sizing: border-box;
  width: min(100%, 16rem);
  padding: 0.35rem;
  border-radius: 1.8rem;
  background: var(--ink);
  box-shadow: 0 0.75rem 1.75rem rgba(21, 23, 26, 0.14);
}
.app-preview img { display: block; width: 100%; height: auto; border-radius: 1.45rem; }
.app-preview figcaption { font-size: .875rem; color: var(--muted); margin-top: .4rem; }
#demo, #how-it-works { scroll-margin-top: 5rem; }

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.cards h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* How it works: numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps .num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal-ink);
  margin-bottom: 0.6rem;
}
.steps h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Privacy: dark panel and permission table */
.panel {
  background: var(--ink);
  color: #f1efe8;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.panel h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: #ffffff; margin-bottom: 1.5rem; }
.panel h2 em { font-style: italic; color: #5fd5c4; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 2rem; }
.checks li { position: relative; padding-left: 1.7rem; color: #d8d6cf; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--teal);
}
.checks strong { color: #ffffff; font-weight: 600; }
.panel .more { margin: 2rem 0 0; color: #b9b7af; font-size: 0.95rem; }
.panel .more a { color: #5fd5c4; }

.perm-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.perm { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.perm th, .perm td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.perm th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.perm tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin: 0; max-width: 46rem; }
.faq div { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.faq div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.4rem; }
.faq dd { margin: 0; color: var(--muted); }

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -34px rgba(21, 23, 26, 0.45);
}
.shots figcaption {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--muted); font-size: 0.92rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.footer-top .brand { font-size: 1.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .legal { margin: 2rem 0 0; font-size: 0.85rem; }

/* Text pages: How it works, About, Licenses, Privacy, Terms */
.prose { max-width: 44rem; margin: 0 auto; padding-top: 4rem; padding-bottom: 5rem; }
.prose h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-bottom: 1.25rem; }
.prose h2 { font-family: var(--serif); font-size: 1.9rem; margin-top: 2.4rem; margin-bottom: 0.4rem; }
.prose p, .prose li { color: #2b2e33; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.meta, .muted { color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

@media (min-width: 860px) {
  .launch-hero { grid-template-columns: 3fr 2fr; text-align: left; padding-block: 3rem; }
  .launch-hero h1, .launch-hero .tagline { margin-inline: 0; }
}

@media (max-width: 720px) {
  .site-header nav { gap: 0.9rem; }
  .site-header nav a { font-size: 0.85rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .panel { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .mark path,
  .home-page .site-header .mark path { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 480px) {
  .site-header nav a:nth-child(3) { display: none; }
  .brand { font-size: 1.45rem; }
}

/* About page: wider column for the founder section */
.prose-wide { max-width: 62rem; }
.prose-wide > h1, .prose-wide > h2, .prose-wide > p { max-width: 44rem; }

.founder {
  display: flow-root;
  padding: 0.5rem 0 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.founder-photo {
  float: left;
  margin: 0.25rem 1.25rem 0.75rem 0;
  shape-outside: circle(50%);
}
.founder-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.founder-text { min-width: 0; }
.founder-text .eyebrow { margin-bottom: 0.5rem; }
.founder-text h2 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin: 0 0 0.3rem; }
.founder-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--teal-ink);
  margin: 0 0 1rem;
}
.founder-text p { color: #2b2e33; margin: 0 0 0.9rem; }

@media (min-width: 860px) {
  .founder-photo { margin-right: 2rem; }
  .founder-photo img { width: 200px; height: 200px; }
}
