/* Potager website. Colours and fonts match the app's New look. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }

:root {
  --green: #1e3f20;      /* deep garden green: headings, buttons, the task card */
  --green-mid: #3f6b33;
  --soil: #382119;       /* warm brown: body text */
  --sage: #f4f6f0;       /* app background */
  --leaf: #edf6e3;       /* pale leaf tint */
  --butter: #f6f2bd;     /* soft yellow highlight */
  --lime: #aabf1c;       /* accent */
  --white: #ffffff;
  --muted: #6d5d55;
  --line: #e3e7da;
  --radius: 28px;
  --heading: 'Inter', system-ui, sans-serif;
  --body: 'Outfit', system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sage);
  color: var(--soil);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); color: var(--green); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--heading); font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--sage); }
.btn-primary:hover { background: #17321a; }
.btn-ghost { color: var(--green); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(244, 246, 240, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--heading); font-weight: 700; font-size: 20px; color: var(--green); }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--soil); }
.nav a:hover { color: var(--green); }
.nav .btn { padding: 10px 20px; font-size: 15px; color: var(--sage); }

/* Hero */
.hero { padding: 72px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; margin: 18px 0 24px; }
.hero h1 span { color: var(--green-mid); }
.hero .say { margin-top: 16px; font-size: 17px; color: var(--muted); }
.hero .say strong { color: var(--soil); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.hero .trial { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art .arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--leaf);
}
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .phone {
  position: absolute; left: -56px; bottom: -40px;
  width: 42%;
  border: 8px solid var(--white);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(30, 63, 32, .35);
  background: var(--white);
}

/* Sections */
section { padding: 112px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2, .title { font-size: clamp(32px, 3.8vw, 44px); line-height: 1.12; margin: 14px 0 18px; }
.centered { text-align: center; margin-left: auto; margin-right: auto; }
.centered .lead { margin: 0 auto; }

/* Features */
.features { background: var(--white); border-radius: 48px; margin: 0 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.feature .icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: var(--leaf);
  color: var(--green);
  margin-bottom: 24px;
}
.feature:nth-child(2) .icon { background: var(--butter); }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 17px; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.steps .photo { border-radius: var(--radius) var(--radius) var(--radius) 160px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--leaf); }
.steps .photo img { width: 100%; height: 100%; object-fit: cover; }
.steps ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.steps li .num {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--green); color: var(--green);
  font-family: var(--heading); font-weight: 600;
}
.steps li h3 { font-size: 20px; margin: 8px 0 6px; }
.steps li p { color: var(--muted); font-size: 17px; }

/* Beginners band */
.words { padding: 0; }
.words .band {
  background: var(--leaf);
  border-radius: var(--radius);
  padding: 56px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.words h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--green);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 24px; }
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.plan.best { border-color: var(--green); }
.plan .tag {
  position: absolute; top: -14px; left: 40px;
  background: var(--butter); color: var(--soil);
  font-family: var(--heading); font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 18px; font-weight: 600; }
.plan .price { font-family: var(--heading); font-size: 44px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; margin: 14px 0 4px; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .note { font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 16px; }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--lime); }
.fine { text-align: center; margin-top: 32px; font-size: 15px; color: var(--muted); }

/* Closing call to action */
.cta { padding-top: 0; }
.cta .band {
  background: var(--green);
  color: var(--sage);
  border-radius: 48px;
  padding: 88px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { color: var(--sage); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.cta p { margin: 18px auto 36px; max-width: 30em; color: rgba(244, 246, 240, .78); }
.cta .btn-primary { background: var(--sage); color: var(--green); }
.cta .btn-primary:hover { background: var(--white); }
.cta .leaf { position: absolute; width: 220px; opacity: .14; color: var(--lime); }
.cta .leaf.l { left: -40px; bottom: -50px; transform: rotate(-20deg); }
.cta .leaf.r { right: -30px; top: -40px; transform: rotate(160deg); }

/* Footer */
.site-footer { padding: 48px 0 56px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer a { text-decoration: none; }
.footer-logo img { display: block; width: 150px; height: auto; }
.site-footer a:hover { color: var(--green); }

/* Gentle fade-in as sections scroll into view */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 72px; }
  .hero-art { max-width: 480px; margin: 0 auto 0 56px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .words .band { grid-template-columns: 1fr; padding: 40px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 88px; }
  .hero-art { margin: 0 0 0 32px; }
  .hero-art .phone { left: -32px; bottom: -32px; border-width: 6px; border-radius: 26px; }
  section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .features { margin: 0 8px; border-radius: 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .words .band { padding: 32px 24px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 32px 28px; }
  .plan .tag { left: 28px; }
  .cta .band { border-radius: 32px; padding: 64px 24px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Not found and error pages */
.simple { padding: 120px 0 160px; }
.simple .title { margin: 14px 0 18px; }
.simple .actions { margin-top: 36px; }

/* Privacy policy and account deletion */
.legal { padding: 72px 0 120px; }
.legal .wrap { max-width: 760px; }
.legal-head { margin-bottom: 40px; }
.legal-head .title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 14px 0 12px; }
.legal .updated { color: var(--muted); font-size: 16px; }
.legal section { padding: 0; margin-top: 48px; scroll-margin-top: 96px; }
.legal h2 { font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
.legal p, .legal li, .legal dd { color: var(--soil); }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.legal dl { margin: 0; display: grid; gap: 20px; }
.legal dt { font-family: var(--heading); font-weight: 600; color: var(--green); font-size: 17px; }
.legal dd { margin: 4px 0 0; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.legal .note { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: var(--butter); font-size: 16px; }
.toc { background: var(--white); border-radius: var(--radius); padding: 24px 28px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; display: block; padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 16px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.request-form { margin-top: 24px; display: grid; gap: 10px; max-width: 440px; }
.request-form label { font-family: var(--heading); font-weight: 600; font-size: 15px; color: var(--green); }
.request-form input {
  font: inherit; font-size: 17px; color: var(--soil);
  padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--white);
}
.request-form input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.request-form .btn { justify-self: start; margin-top: 8px; border: 0; cursor: pointer; }
.form-error { color: #b42318; font-size: 15px; }
.form-error ul { margin: 0; padding: 0; list-style: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-top: 8px; padding: 20px 24px; border-radius: 20px; background: var(--leaf); }
.notice p { margin-top: 6px; }

@media (max-width: 640px) {
  .legal { padding: 40px 0 88px; }
  .toc { padding: 20px 22px; }
  .toc ol { columns: 1; }
}
