/* getmealtime.app, in the look of the MealTime page that used to live at
   khaldoun.dev/mealtime/ (Playfair Display + Inter, cream, terracotta check
   marks, full-screen sections, tilted phones).
   .site--landing: the landing page. .site--doc: privacy and deletion.
   .card-page: the single-card pages (invite, 404). */

@font-face { font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/fonts/playfair-display-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/fonts/playfair-display-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/fonts/playfair-display-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #FBF7F1;
  --card: #FFFFFF;
  --card-soft: rgba(255, 255, 255, .75);
  --text: #1E1E1E;
  --muted: #666666;
  --accent: #D06D4F;
  --accent-text: #B4553A;    /* accent dark enough for small text */
  --on-accent: #FFFFFF;
  --border: rgba(0, 0, 0, .07);
  --code-bg: #F6EDE2;
  --dot: rgba(0, 0, 0, .25);
  --shadow: drop-shadow(0 20px 40px rgba(0, 0, 0, .15));
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Playfair Display", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --card: #221F1C;
    --card-soft: rgba(255, 255, 255, .06);
    --text: #F3EEE8;
    --muted: #B5ACA3;
    --accent-text: #E8957D;
    --border: rgba(255, 255, 255, .09);
    --code-bg: #2A2622;
    --dot: rgba(255, 255, 255, .3);
    --shadow: drop-shadow(0 20px 40px rgba(0, 0, 0, .55));
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent-text); }
p { color: var(--muted); margin: 8px 0; }
img { max-width: 100%; height: auto; }

button, a.button {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px 16px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  margin-top: 10px; text-align: center;
}
.button.primary, button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary, button.secondary { background: transparent; color: var(--accent-text); border: 2px solid var(--accent); }
.hidden { display: none; }

/* ---- Single-card pages: invite, 404 ---- */
.card-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; }
.card-page main {
  width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 22px; text-align: center;
}
.card-page h1 { font-size: 1.35rem; margin: 16px 0 8px; line-height: 1.3; }
.icon { width: 72px; height: 72px; border-radius: 18px; }
.code-label { margin-top: 22px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.code {
  font-size: 2.2rem; font-weight: 800; letter-spacing: .18em; color: var(--text); background: var(--code-bg);
  border-radius: 14px; padding: 14px 8px; margin: 8px 0 10px; font-variant-numeric: tabular-nums;
  direction: ltr; user-select: all; word-break: break-all;
}
.stores { margin-top: 18px; }
.steps { text-align: start; color: var(--muted); padding-inline-start: 20px; line-height: 1.6; margin: 12px 0 0; }

/* ---- Top nav (site pages) ---- */
.top-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 10; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); }
.top-nav-inner { max-width: 1400px; margin: 0 auto; padding: 14px 28px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; }
.site-title { font-family: var(--font-title); font-size: 1.3rem; font-weight: 500; color: var(--text);
  letter-spacing: .02em; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-soft); color: var(--text); font-size: .9rem; font-weight: 500; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; color: var(--muted); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; min-width: 170px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); z-index: 30; }
.lang-menu li a, .lang-menu li span { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--text); }
.lang-menu li a:hover { background: var(--bg); }
.lang-menu li span { font-weight: 600; color: var(--accent-text); }

/* ---- Landing: full-screen sections that snap ---- */
.landing { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.feature {
  min-height: 100vh; min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  max-width: 1200px; margin: 0 auto; padding: 120px 24px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.feature--reverse .feature-visual { order: 2; }
.feature--hero { padding-top: 160px; }
.feature h1, .feature h2 { font-family: var(--font-title); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.feature h1 { font-size: clamp(2.4rem, 4.6vw, 3.2rem); }
.feature h2 { font-size: clamp(2rem, 3.6vw, 2.5rem); }
.feature-text { display: flex; flex-direction: column; }
.eyebrow { color: var(--accent-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; margin: 0 0 14px; }
.feature-body { margin-top: 24px; font-size: 1.05rem; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); }
.feature-list li { margin-bottom: 12px; padding-inline-start: 24px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 600; }
.note { font-size: .9rem; margin-top: 16px; }

.feature-visual { display: flex; justify-content: center; align-items: center; }
/* Phone height is 2.22x its width; at 46% of the box it fits a 1:1.08 box
   with room for the tilt. The box also shrinks with the window height. */
.phone-pair { position: relative; width: min(460px, 100%, 62vh); aspect-ratio: 1 / 1.08; }
.phone { position: absolute; width: 46%; height: auto; border-radius: 30px; border: 5px solid #1C2433;
  background: #1C2433; filter: var(--shadow); }
.phone--front { left: 8%; top: 3%; transform: rotate(-6deg); z-index: 2; }
.phone--back { right: 4%; top: 2%; transform: rotate(7deg); z-index: 1; filter: var(--shadow) brightness(.93); }

.feature--intro { grid-template-columns: 1fr; }
.intro { max-width: 760px; margin: 0 auto; text-align: center; }
.intro .lead { font-family: var(--font-title); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.5; color: var(--text); }

.feature--cards { grid-template-columns: 1fr; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--card-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h2 { font-size: 1.45rem; }
.card p { margin-top: 12px; }
.card .feature-list { margin-top: 16px; }

.feature--faq { grid-template-columns: 1fr; }
.faq { max-width: 760px; width: 100%; margin: 0 auto; }
.faq h2 { text-align: center; margin: 0 0 28px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid rgba(128, 128, 128, .25); border-radius: 14px; background: rgba(128, 128, 128, .04); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--accent-text); }
.faq-a { padding: 0 20px 20px; margin: 0; line-height: 1.6; }
.get { text-align: center; margin-top: 56px; }
.get h2 { margin-bottom: 4px; }
.get .store-badges { justify-content: center; margin-top: 18px; }
.langs { margin-top: 22px; font-size: .9rem; }
.langs a { text-decoration: none; }
.langs span { color: var(--text); font-weight: 600; }

/* Store badges (official artwork; the Play PNG carries its own padding) */
.store-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.store-badge { display: inline-flex; align-items: center; }
.store-badge img { height: 48px; width: auto; }
.store-badge--play img { height: 72px; margin: -12px -14px; }

/* Reveal: only when the script runs, so nothing is hidden without it */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .landing { scroll-behavior: auto; }
}

.slide-indicator { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); display: flex;
  flex-direction: column; gap: 14px; z-index: 20; }
.slide-indicator button { width: 10px; height: 10px; padding: 0; margin: 0; border-radius: 50%; border: none;
  background: var(--dot); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.slide-indicator button.active { background: var(--text); transform: scale(1.6); }

.footer { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 10; text-align: center; padding: 4px 24px;
  color: var(--muted); font-size: .85rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.footer-inline { display: none; }
.footer a, .doc-footer a, .footer-inline a { color: inherit; text-decoration: underline; margin-inline-end: 12px; }

/* ---- Privacy and deletion pages (the old privacy page's cards) ---- */
.doc { max-width: 820px; margin: 0 auto; padding: 140px 24px 80px; }
.doc-hero { text-align: center; margin-bottom: 48px; }
.doc-hero h1 { font-family: var(--font-title); font-size: clamp(2.2rem, 5vw, 2.8rem); margin: 0; line-height: 1.2; }
.doc-hero .subtitle { margin-top: 12px; font-size: 1.1rem; }
.doc-card { background: var(--card-soft); backdrop-filter: blur(6px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.doc-card h2 { font-family: var(--font-title); font-size: 1.4rem; margin: 0 0 12px; line-height: 1.3; }
.doc-card p { margin: 0 0 12px; color: var(--text); }
.doc-card p:last-child { margin-bottom: 0; }
.doc-card ul { color: var(--text); padding-inline-start: 22px; margin: 0 0 12px; }
.doc-card li { margin: 6px 0; }
.doc-card a { color: var(--text); text-decoration: underline; }
.doc-card--summary { border-color: var(--accent); }
.translation-note { text-align: center; font-size: .92rem; margin: -24px 0 32px; }
.doc-footer { text-align: center; font-size: .9rem; margin-top: 40px; }
.doc-footer.langs { margin-top: 8px; }

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .top-nav-inner { padding: 12px 20px; }
  .site-title { font-size: 1.1rem; }
  .feature { padding: 72px 20px 56px; text-align: center; grid-template-columns: 1fr; gap: 12px;
    justify-content: center; align-content: center; }
  .feature h1 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .feature h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  .feature-visual, .feature--reverse .feature-visual { order: 1; }
  .feature-text { align-items: center; order: 2; max-width: 92%; margin: 0 auto; }
  .feature--hero { padding-top: 80px; }
  .feature--hero .feature-text { order: 1; }
  .feature--hero .feature-visual { order: 2; }
  .phone-pair { width: min(300px, 78%, 46vh); }
  .feature-list { max-width: 420px; margin: 18px auto 0; text-align: start; font-size: .92rem; }
  .feature-list li { margin-bottom: 8px; }
  .feature-body { margin-top: 14px; font-size: .95rem; }
  .store-badges { justify-content: center; margin-top: 22px; }
  .store-badge img { height: 40px; }
  .store-badge--play img { height: 60px; margin: -10px -12px; }
  .slide-indicator { display: none; }
  /* On a phone a fixed footer covers each section's bottom; the links sit at
     the end of the last section instead. */
  .footer { display: none; }
  .footer-inline { display: block; margin-top: 18px; font-size: .85rem; color: var(--muted); }
  .card { text-align: start; }
  .doc { padding: 100px 18px 60px; }
  .doc-card { padding: 24px; }
}

/* The backlink to the developer's site sits inside "© MealTime ·". */
.footer .author-link, .doc-footer .author-link { margin-inline-end: 0; }
