/* ==========================================================================
   Poured — landing site styles
   Palette + type mirror the iOS app's Theme.swift (warm recipe-book look).
   ========================================================================== */

:root {
  /* Brand palette (from Poured/Theme/Theme.swift) */
  --cream: #faf2e2;
  --paper: #fffcf5;
  --amber: #de8c2b;
  --terracotta: #cc5c45;
  --plum: #42263b;
  --sage: #85997d;
  --ink: #33292e;

  --hairline: rgba(222, 140, 43, 0.2);
  --hairline-soft: rgba(222, 140, 43, 0.14);
  --ink-72: rgba(51, 41, 46, 0.72);
  --ink-55: rgba(51, 41, 46, 0.55);

  --shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 44px rgba(66, 38, 59, 0.16);

  --r-card: 20px;
  --r-plate: 14px;
  --r-pill: 999px;

  /* Type */
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --maxw: 1120px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background-color: var(--cream);
  /* Soft paper wash + faint warm glows top-left / top-right */
  background-image:
    radial-gradient(1100px 620px at 12% -8%, rgba(222, 140, 43, 0.14), transparent 60%),
    radial-gradient(900px 560px at 92% 4%, rgba(204, 92, 69, 0.1), transparent 62%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--plum);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--terracotta);
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
}

/* Small caps section label — terracotta, tracked out */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--terracotta);
  margin: 0 0 14px;
}

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

.section-head h2 {
  font-size: clamp(30px, 4.6vw, 46px);
}

.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-72);
}

/* --------------------------------------------------------------------------
   Reusable pieces
   -------------------------------------------------------------------------- */

.paper-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff7f1;
  box-shadow: 0 8px 20px rgba(204, 92, 69, 0.32);
}

.btn-primary:hover {
  color: #fff7f1;
  background: #bf503a;
  box-shadow: 0 10px 26px rgba(204, 92, 69, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  color: var(--plum);
  background: rgba(222, 140, 43, 0.09);
  border-color: var(--amber);
}

.btn-block {
  width: 100%;
}

/* App Store badge-style button */
.btn-appstore {
  background: var(--ink);
  color: #fff;
  padding: 11px 22px;
  gap: 12px;
}

.btn-appstore:hover {
  color: #fff;
  background: #241d21;
}

.btn-appstore .appstore-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  opacity: 0.82;
  line-height: 1;
  display: block;
}

.btn-appstore .appstore-main {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
  display: block;
}

.btn-appstore svg {
  width: 26px;
  height: 26px;
  flex: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 242, 226, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--plum);
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-72);
}

.nav a:hover {
  color: var(--terracotta);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

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

.hero {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(40px, 7vw, 80px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px);
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: var(--terracotta);
  font-style: italic;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-72);
  max-width: 30em;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-tag {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sage);
}

/* Hero visual — just the app icon */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-icon {
  width: 100%;
  max-width: 340px;
  border-radius: 24%;
  filter: drop-shadow(0 20px 44px rgba(66, 38, 59, 0.22));
}

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-art {
    order: -1;
    margin-bottom: 12px;
  }
}

/* --------------------------------------------------------------------------
   How it works — numbered steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  padding: 26px 22px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-72);
  font-size: 15.5px;
}

.steps-tag {
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--terracotta);
}

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

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Features grid
   -------------------------------------------------------------------------- */

.features {
  background:
    linear-gradient(180deg, transparent, rgba(255, 252, 245, 0.6) 40%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 24px 22px;
}

.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(222, 140, 43, 0.12);
  color: var(--amber);
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 7px;
}

.feature p {
  color: var(--ink-72);
  font-size: 15px;
}

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

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Forms (contact + support)
   -------------------------------------------------------------------------- */

.form-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 40px);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--terracotta);
}

input,
textarea,
select {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-plate);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(222, 140, 43, 0.18);
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23de8c2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-note {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-55);
}

.form-status {
  min-height: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sage);
}

.form-status.error {
  color: var(--terracotta);
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  background: rgba(255, 252, 245, 0.5);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--plum);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
}

.footer-brand span {
  font-family: var(--font-serif);
  font-size: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.footer-links a {
  color: var(--ink-72);
}

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

.footer-copy {
  width: 100%;
  font-size: 13.5px;
  color: var(--ink-55);
}

/* --------------------------------------------------------------------------
   Support (grill-me) hero
   -------------------------------------------------------------------------- */

.support-hero {
  text-align: center;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: 10px;
}

.support-hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
}

.support-hero h1 .accent {
  color: var(--terracotta);
  font-style: italic;
}

.support-hero p {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 18px;
  color: var(--ink-72);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Reveal-on-load (respects reduced motion)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}
