/* aicooking.app: the website, in the app's look (page grey, white cards, glass brown, brand green). */
:root {
  --page: #EDEDED;
  --card: #FFFFFF;
  --text: #353739;
  --text-2: #5A6066;
  --muted: #7B8287;
  --line: rgba(0, 0, 0, 0.08);
  --glass: #2A2017;
  --green: #86C144;
  --on-green: #14210A;
  --green-dark: #426A20;
  --green-soft: #E6F3D6;
  --warm: #D9D2C8;
  --leaf: #B9D98F;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 22px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--green-dark); }
a:hover { color: #2f4d16; }
h1, h2, h3 { color: var(--text); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--card); padding: 10px 14px; border-radius: 12px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.btn svg { flex-shrink: 0; }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: #79b23a; color: var(--on-green); }
.btn-dark { background: var(--glass); color: #FFFFFF; font-weight: 700; }
.btn-dark:hover { background: #3a2e22; color: #FFFFFF; }
.btn-line { border: 1.5px solid #CFCBC0; color: var(--text); font-weight: 700; }
.btn-line:hover { border-color: var(--text); color: var(--text); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand span { font-size: 23px; font-weight: 800; letter-spacing: -0.4px; color: var(--green-dark); }
.brand b { color: #4F7F26; font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--green-dark); }

/* Hero */
.hero { overflow-x: clip; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(40px, 4.8vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -1.6px; text-wrap: balance; }
.hero h1 span { display: block; margin-top: 12px; font-size: 0.64em; line-height: 1.1; letter-spacing: -0.8px; color: var(--green-dark); text-wrap: balance; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero-card { width: 100%; max-width: 402px; height: auto; display: block; }

/* Floating chat messages under the hero card */
.msgs { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 430px; margin: 4px 0 0; padding: 0; list-style: none; }
.msg { max-width: min(320px, 88%); color: var(--text); font-size: 15px; line-height: 1.4; border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 14px 30px rgba(0, 0, 0, 0.14); }
.msg.r { align-self: flex-end; }
.msg.l { align-self: flex-start; }
.msg-you { padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--glass); color: #FFFFFF; }
.msg-mila { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px 12px 12px; border-radius: 6px 20px 20px 20px; background: var(--card); }
.msg-mila img { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; }
.msg-mila p { margin: 2px 0 0; }
.who { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; color: var(--muted); text-transform: uppercase; }
.msg-receipt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--card); }
.msg-receipt strong { display: block; font-size: 14.5px; font-weight: 600; }
.msg-receipt small { display: block; font-size: 13px; color: var(--muted); }
.msg-receipt em { margin-left: 6px; font-style: normal; font-size: 14.5px; font-weight: 800; }
@media (min-width: 1280px) {
  .msg.r { margin-right: -36px; }
  .msg.l { margin-left: -36px; }
}

/* Sections */
section { scroll-margin-top: 16px; }
.section { padding: 0 0 64px; }
.section h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; text-wrap: balance; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.panel { border-radius: 28px; background: var(--card); border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06); overflow: hidden; }

/* Recipe of the Day */
.today { display: flex; flex-wrap: wrap; }
.today-photo { flex: 1 1 420px; min-width: 0; position: relative; min-height: 360px; background: var(--glass); }
.today-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.today-badges { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; }
.badge-green { background: var(--green); color: var(--on-green); }
.badge-glass { background: rgba(42, 32, 23, 0.82); color: #FFFFFF; font-weight: 700; }
.today-copy { flex: 1 1 440px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.today-copy h2 { font-size: 36px; line-height: 1.08; letter-spacing: -0.8px; }
.chef-chip { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: #F3F3F3; align-self: flex-start; }
.chef-chip img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: 50% 20%; }
.chef-chip b { display: block; font-size: 16px; }
.chef-chip span { display: block; font-size: 14px; font-weight: 600; color: var(--green-dark); padding-right: 8px; }
.today-copy p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }
.today-list { display: grid; gap: 12px; margin-top: 4px; }
.today-more { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #F6F6F4; text-decoration: none; color: var(--text); }
.today-more img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.today-more b { display: block; font-size: 15px; }
.today-more span { font-size: 13px; color: var(--muted); }

/* Scanner */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.split-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.split-copy .note { font-size: 15px; color: var(--muted); }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.phones { flex: 1.4 1 520px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px; }
.phone { width: 100%; max-width: 280px; margin: 0; padding: 9px; border-radius: 48px; background: #16130F; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22); }
.phone img { width: 100%; height: auto; display: block; border-radius: 39px; }
.phone + .phone { margin-top: 48px; }
@media (max-width: 640px) { .phone + .phone { margin-top: 0; } }

/* Features */
.stack { display: flex; flex-direction: column; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.list-card { border-radius: 22px; background: var(--card); border: 1px solid rgba(0, 0, 0, 0.06); padding: 8px 0; margin: 0; list-style: none; }
.list-card li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #EEEEEE; }
.list-card li:last-child { border-bottom: 0; }
.list-card b { font-size: 16px; }
.list-card p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.ico.warn { background: #FDF0DD; }
.ico.grey { background: #F3F3F3; }
.ico img { width: 40px; height: 40px; border-radius: 12px; }

/* Chefs */
.grid-chefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.chef { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); margin: 0; }
.chef div { position: relative; }
.chef img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; object-position: 50% 20%; display: block; }
.chef div span { position: absolute; top: 12px; left: 12px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(42, 32, 23, 0.72); color: #FFFFFF; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; }
.chef figcaption { padding: 14px 16px 16px; font-size: 15px; font-weight: 600; color: var(--green-dark); }
.chef-own { border-radius: 22px; background: #F6F6F4; border: 1.5px dashed #C9C6BD; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px; min-height: 260px; }
.chef-own b { font-size: 19px; }
.chef-own p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* Gems */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { border-radius: 22px; background: var(--card); border: 1px solid rgba(0, 0, 0, 0.06); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.price b { font-size: 18px; }
.price .amount { font-size: 32px; font-weight: 800; }
.price .amount small { font-size: 15px; font-weight: 600; color: var(--warm); }
.price span { color: var(--text-2); }
.price.best { border: 2px solid var(--green); }
.price.supporter { background: var(--glass); color: #FFFFFF; border: 0; }
.price.supporter b, .price.supporter .amount { color: #FFFFFF; }
.price.supporter span { color: var(--warm); }
.price.supporter .why { font-size: 13.5px; color: var(--leaf); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 700; }
.packs { padding: 8px 18px; }
.packs div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #EEEEEE; font-weight: 700; }
.packs div:last-child { border-bottom: 0; }
.packs div span { display: flex; align-items: center; gap: 8px; color: var(--text); }
.fine { margin: 0; font-size: 13px; color: var(--muted); }

/* Text pages (support, legal) */
.page { padding: 48px 0 64px; }
.page .wrap { max-width: 860px; }
.page h1 { margin: 0 0 8px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -1.2px; }
.page .date { margin: 0 0 28px; font-size: 14px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.6px; }
.doc { border-radius: 28px; background: var(--card); border: 1px solid rgba(0, 0, 0, 0.06); padding: clamp(22px, 5vw, 48px); }
.doc h2 { margin: 32px 0 10px; font-size: 22px; letter-spacing: -0.3px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--text-2); }
.doc ul { padding-left: 22px; }
.faq details { border-bottom: 1px solid #EEEEEE; padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; color: var(--text); }
.faq details p { margin: 10px 0 0; }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-decoration: none; margin: 0 0 20px; }
.contact img { width: 44px; height: 44px; border-radius: 50%; }
.contact b { display: block; color: var(--text); }
.contact span { color: var(--green-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--glass); color: #F2EEE8; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.foot-brand { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.foot-brand .brand span { color: #FFFFFF; font-size: 24px; }
.foot-brand .brand img { width: 40px; height: 40px; border-radius: 12px; }
.foot-brand p { margin: 0; max-width: 340px; font-size: 17px; line-height: 1.45; color: var(--warm); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #FFFFFF; font-weight: 700; }
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.foot-nav { flex: 2 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.foot-nav div { display: flex; flex-direction: column; gap: 10px; }
.foot-nav p { margin: 0 0 4px; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; color: var(--leaf); text-transform: uppercase; }
.foot-nav a { color: var(--warm); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: #FFFFFF; }
.foot-mail { align-self: flex-start; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
.foot-mail img { width: 40px; height: 40px; border-radius: 50%; }
.foot-mail b { display: block; font-size: 15px; color: #FFFFFF; }
.foot-mail span { font-size: 15px; color: var(--leaf); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: #A79F95; }
.foot-bottom div { display: flex; align-items: center; gap: 18px; }
.lang a { color: #A79F95; text-decoration: none; font-size: 14px; }
.lang a[aria-current] { color: #FFFFFF; font-weight: 700; }
.social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; }
.social:hover { background: rgba(255, 255, 255, 0.16); }

/* Cookie consent */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin: 0 auto; padding: 18px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22); display: flex; flex-direction: column; gap: 10px; }
.consent b { font-size: 16px; }
.consent p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn-line { border: 1.5px solid #CFCBC0; background: transparent; }
.lang button, .foot-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: #A79F95; cursor: pointer; text-decoration: none; }
.foot-link:hover { color: #FFFFFF; }

@media (max-width: 520px) {
  .hero .wrap { padding-top: 32px; }
  .today-copy { padding: 24px; }
  .today-copy h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
