/* ReciQuick website. Tokens mirror src/theme.ts so the site and the app match. */

@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --text: #2f2a26;
  --text-2: #6e665e;
  --bg: #fbf7f1;
  --surface: #fffcf7;
  --surface-muted: #f1e9de;
  --border: #e7ddd1;
  --accent: #4f96c7;
  --accent-soft: #e3f2fa;
  --warm: #c8641e;
  --warm-hover: #b2561a;
  --warm-soft: #fbe4cf;
  --on-warm: #ffffff;
  --success: #6b8f71;
  --mint: #d7e8cf;
  --bowl: #f2c44d;
  --pitcher: #f4b3c0;
  --utensil: #f3e6c8;
  --shadow: 0 1px 2px rgba(47, 42, 38, 0.04), 0 12px 32px rgba(47, 42, 38, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f7f3ee;
    --text-2: #a8a096;
    --bg: #1c1916;
    --surface: #2a2622;
    --surface-muted: #35302b;
    --border: #4a433c;
    --accent: #7eb3d4;
    --accent-soft: #2a3d48;
    --warm: #f0a468;
    --warm-hover: #f4b680;
    --warm-soft: #3d2a1c;
    --on-warm: #1c1916;
    --success: #8fb896;
    --mint: #2f3a2c;
    --bowl: #4a3d1c;
    --pitcher: #47302f;
    --utensil: #3b342a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav + .header-actions {
  margin-left: 0;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}
.nav a:hover {
  text-decoration-color: var(--warm);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  display: inline-flex;
  align-items: center;
}
.lang button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--text-2);
  padding: 6px 8px;
  cursor: pointer;
}
.lang button + button {
  border-left: 1px solid var(--border);
}
.lang button:hover,
.lang button[aria-pressed="true"] {
  color: var(--text);
}
.lang button[aria-pressed="true"] {
  font-weight: 700;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-warm {
  background: var(--warm);
  color: var(--on-warm);
  padding: 14px 24px;
}
.btn-warm:hover {
  background: var(--warm-hover);
}
.btn-small {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-store {
  background: #000;
  color: #fff;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  line-height: 1.1;
  text-align: left;
}
.btn-store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.btn-store small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
.btn-store strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
  .btn-store {
    background: #fff;
    color: #000;
  }
}

/* Hero */

.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 11ch;
  margin-bottom: 28px;
}
.lede {
  font-size: clamp(18px, 1.7vw, 20px);
  color: var(--text-2);
  max-width: 31em;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.cta-note {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
}

/* Phone mockup: the app's Recipes tab with an imported recipe card over it */

.hero-art {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding-bottom: 8px;
}

.phone {
  position: relative;
  width: 290px;
  height: 590px;
  margin-left: auto;
  margin-right: 10px;
  border-radius: 46px;
  padding: 12px;
  background: #1f1b18;
  box-shadow: var(--shadow);
}
.screen {
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fbf7f1;
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 1;
}

.share-sheet {
  position: absolute;
  left: 0;
  bottom: 56px;
  z-index: 2;
  width: 252px;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 2px 4px rgba(47, 42, 38, 0.06), 0 24px 48px rgba(47, 42, 38, 0.18);
  font-size: 12px;
  animation: sheet-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}
.sheet-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.sheet-bar span {
  color: var(--text-2);
  font-weight: 600;
}
.sheet-bar b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.sheet-bar img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

@keyframes sheet-up {
  from {
    transform: translateY(40px);
  }
}

.screen-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.byline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-weight: 600;
}
.byline svg {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.meta-row {
  display: flex;
  gap: 6px;
}
.chip {
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
  font-size: 11px;
}
.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.ingredients li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.ingredients span {
  color: var(--text-2);
}
.screen-btn {
  margin-top: 2px;
  background: var(--warm);
  color: var(--on-warm);
  text-align: center;
  font-weight: 700;
  padding: 10px;
  border-radius: 999px;
}

.hero-bear {
  position: absolute;
  width: 108px;
  bottom: -46px;
  right: -22px;
  filter: drop-shadow(0 12px 20px rgba(47, 42, 38, 0.15));
}

/* Sources strip */

.sources {
  padding: 28px 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.sources .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
}
.sources p {
  font-weight: 700;
  color: var(--text-2);
  font-size: 15px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.source svg {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.source .glyph {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
}
.source .glyph svg {
  width: 17px;
  height: 17px;
  border-radius: 0;
}

/* Sections */

section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--warm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--warm-soft);
  color: var(--warm);
  font-weight: 700;
  margin-bottom: 18px;
}
.steps h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.steps p {
  color: var(--text-2);
}

/* Feature bento */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}
.card h3 {
  font-size: 24px;
}
.card p {
  color: var(--text-2);
  max-width: 30em;
}
.card .art {
  margin-top: auto;
  align-self: flex-end;
  width: 190px;
  margin-bottom: -30px;
  margin-right: -10px;
}
.card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}

.span-4 {
  grid-column: span 4;
}
.span-3 {
  grid-column: span 3;
}
.span-2 {
  grid-column: span 2;
}

.card.chef {
  background: var(--warm-soft);
  border-color: transparent;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.card.chef .copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card.chef .art {
  width: 230px;
  margin: 0 0 -30px;
  align-self: flex-end;
  flex: none;
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}
.bubble {
  padding: 9px 14px;
  border-radius: 18px;
  max-width: 85%;
}
.bubble.me {
  align-self: flex-end;
  background: var(--warm);
  color: var(--on-warm);
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--surface);
  border-bottom-left-radius: 6px;
}

.card.plan {
  background: var(--mint);
  border-color: transparent;
}
.card.fridge {
  background: var(--accent-soft);
  border-color: transparent;
}
.card.fridge .card-icon,
.card.cook .card-icon {
  background: var(--surface);
}
.card.cook .card-icon {
  color: var(--warm);
}
.card.share .card-icon {
  background: var(--utensil);
  color: var(--warm);
}
.card.diet .card-icon {
  background: var(--mint);
  color: var(--success);
}
.card.nutrition .card-icon {
  background: var(--pitcher);
  color: #b14a5f;
}
.card.photo .card-icon {
  background: var(--bowl);
  color: #8a6510;
}
@media (prefers-color-scheme: dark) {
  .card.nutrition .card-icon {
    color: #f4b3c0;
  }
  .card.photo .card-icon {
    color: #f2c44d;
  }
}

.diet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.diet-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 5px 11px 5px 8px;
  font-size: 13px;
  font-weight: 700;
}
.diet-row svg {
  width: 15px;
  height: 15px;
}
.fine {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

.macro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
}
.ring {
  width: 92px;
  height: 92px;
  flex: none;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  gap: 4px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend .p {
  background: #e07a5f;
}
.legend .c {
  background: #f2c44d;
}
.legend .f {
  background: #4f96c7;
}

/* Watch strip */

.watch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
}
.watch-face {
  width: 64px;
  height: 76px;
  border-radius: 18px;
  background: #1f1b18;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  padding: 6px;
  flex: none;
}
.watch-face b {
  display: block;
  color: #f0a468;
  font-size: 16px;
}

/* FAQ */

.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 700;
  font-size: 19px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--text-2);
  border-bottom: 2.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  color: var(--text-2);
  padding: 0 0 22px;
}

/* Final CTA */

.final {
  padding: 40px 0 96px;
}
.final-card {
  position: relative;
  background: var(--warm-soft);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.final-card h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
}
.final-card p {
  color: var(--text-2);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 30em;
}
.final-card img {
  width: 240px;
  margin: -20px -10px -76px 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--text-2);
}
.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: 22px;
}
.site-footer a {
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .brand {
  color: var(--text);
  font-size: 17px;
}
.site-footer .brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* Legal and support pages */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 10px;
}
.doc .updated {
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 23px;
  margin: 40px 0 12px;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc p + p {
  margin-top: 12px;
}
.doc ul {
  padding-left: 22px;
  margin: 12px 0;
}
.doc li + li {
  margin-top: 6px;
}
.doc a {
  color: var(--warm);
  font-weight: 700;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}
.doc th {
  font-weight: 700;
}
.doc h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}
.doc ol {
  padding-left: 22px;
  margin: 12px 0;
}
.doc ol li + li {
  margin-top: 6px;
}
.doc h2 {
  scroll-margin-top: 88px;
}
.callout ul {
  margin-bottom: 0;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 28px 0 8px;
}
.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  font-size: 15px;
}
.toc li + li {
  margin-top: 4px;
}
.doc .toc a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.doc .toc a:hover {
  color: var(--warm);
}
mark.todo {
  background: #fde68a;
  color: #2f2a26;
  border-radius: 4px;
  padding: 0 4px;
}
@media (max-width: 720px) {
  .toc ol {
    columns: 1;
  }
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px var(--gutter);
}
.not-found img {
  width: 200px;
  margin: 0 auto 24px;
}
.not-found h1 {
  font-size: 40px;
  margin-bottom: 12px;
}
.not-found p {
  color: var(--text-2);
  margin-bottom: 28px;
}

/* Scroll reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

/* Responsive */

@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero h1 {
    max-width: 13ch;
  }
  .hero-art {
    justify-self: center;
  }
  .span-4,
  .span-3,
  .span-2 {
    grid-column: span 6;
  }
  .card.chef {
    flex-direction: column;
    align-items: stretch;
  }
  .card.chef .art {
    width: 190px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .header-actions,
  .nav + .header-actions {
    margin-left: auto;
  }
  .header-actions .btn-small {
    display: none;
  }
  section {
    padding: 72px 0;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .final-card {
    grid-template-columns: 1fr;
    padding: 36px 24px 0;
  }
  .final-card img {
    width: 180px;
    margin: 0 auto -10px;
  }
  .hero-bear {
    display: none;
  }
  .hero-art {
    padding-bottom: 150px;
  }
  .share-sheet {
    bottom: 0;
  }
}

@media (max-width: 380px) {
  .phone {
    width: 260px;
    height: 540px;
  }
  .share-sheet {
    width: 228px;
    padding: 10px 14px 14px;
  }
}
