/* Shared look of the Recipe Keeper website (index, World, Pantry). */
  /* Layout: a cosy one-page site in the app's knitted look. Header · hero (knitted title + real app in phones) ·
     features as alternating rows · languages · family · Premium · questions · support. */
  :root {
    --bg: #FBF5EC; --bg-2: #F5EADB; --surface: #FFFCF7; --ink: #3E2418; --ink-soft: #7A5440; --line: #E9DAC5;
    --accent: #6B1F2C; --on-accent: #FFF6E8; --stitch: rgba(122, 84, 64, .38); --shadow: rgba(74, 44, 29, .22);
    --rust: #B4532F; --mustard: #CF9E38; --olive: #6E7A3D; --burgundy: #6B1F2C; --cinnamon: #A65A2E;
    --display: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --bg: #4A382D; --bg-2: #554034; --surface: #5E4839; --ink: #F6EBDD; --ink-soft: #DCC7B2; --line: #6E5646;
    --accent: #EE9BAA; --on-accent: #2A1015; --stitch: rgba(255, 236, 220, .35); --shadow: rgba(10, 4, 2, .4); color-scheme: dark } }
  :root[data-theme="dark"] {
    --bg: #4A382D; --bg-2: #554034; --surface: #5E4839; --ink: #F6EBDD; --ink-soft: #DCC7B2; --line: #6E5646;
    --accent: #EE9BAA; --on-accent: #2A1015; --stitch: rgba(255, 236, 220, .35); --shadow: rgba(10, 4, 2, .4); color-scheme: dark }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.6 var(--body); }
  body::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: url('tex/boucle.png') repeat; background-size: 180px; opacity: .07; mix-blend-mode: multiply; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  a { color: var(--accent); }
  h2 { font: 900 clamp(28px, 4.4vw, 44px)/1.15 var(--display); margin: 0 0 .4em; text-wrap: balance; letter-spacing: -.2px; }
  p { margin: 0; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

  /* header */
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
  header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; gap: 14px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 3px 8px var(--shadow); }
  .brand span { font: 700 21px var(--serif); font-style: italic; }
  select { font: 700 15px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
  .pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 15px var(--body); border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
  .knit-btn { color: #FFF6E8; background: url('tex/knit.png') repeat, linear-gradient(180deg, #8A2E3E, #5E1825); background-size: 60px 58px, auto; background-blend-mode: overlay;
    box-shadow: 0 8px 16px -6px rgba(60, 20, 20, .55), inset 0 2px 2px rgba(255,255,255,.3); position: relative; }
  .knit-btn::before { content: ''; position: absolute; inset: 4px; border-radius: inherit; border: 2px dashed rgba(255, 235, 220, .55); pointer-events: none; }
  @media (max-width: 560px) { .bar .knit-btn { display: none; } }

  /* hero */
  .hero { padding-block: 56px 40px; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
  @media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
  .kicker { font: 800 14px var(--body); text-transform: uppercase; letter-spacing: 1.6px; color: var(--ink-soft); margin-bottom: 16px; }
  .knit-title { font: 900 clamp(54px, 9vw, 104px)/1.02 var(--display); margin: 0 0 22px; letter-spacing: 1px; }
  .knit-title .line { display: block; }
  .w { display: inline-block; white-space: nowrap; }
  .b { position: relative; display: inline-block; color: var(--x);
    text-shadow: 0 1px 0 var(--x), 0 2px 0 var(--x), 0 3px 0 var(--x), 0 4px 0 var(--x), 0 5px 0 var(--x), 0 6px 0 var(--x), 0 14px 18px rgba(60, 30, 15, .3); }
  .b::before, .b::after { content: attr(data-ch); position: absolute; left: 0; top: 0; color: transparent; text-shadow: none; -webkit-background-clip: text; background-clip: text; }
  .b::before { background-image: url('tex/knit.png'), linear-gradient(172deg, var(--l), var(--m) 50%, var(--d)); background-size: 52px 50px, 100% 100%; background-blend-mode: overlay, normal; }
  .b::after { background-image: linear-gradient(175deg, rgba(255,255,255,.5), rgba(255,255,255,.1) 30%, rgba(255,255,255,0) 46%); }
  .y-rust { --l: #E08A60; --m: #B4532F; --d: #8E3A1C; --x: #6A2A12; }
  .y-mustard { --l: #F0C86A; --m: #CF9E38; --d: #A8781C; --x: #7A5610; }
  .y-olive { --l: #A0AC68; --m: #6E7A3D; --d: #535C2A; --x: #3B421E; }
  .y-burgundy { --l: #A8485A; --m: #6B1F2C; --d: #4E131D; --x: #360A12; }
  .y-cinnamon { --l: #D08A58; --m: #A65A2E; --d: #7E3F1C; --x: #5E2C13; }
  .lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
  .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
  .cta-row .knit-btn { font-size: 18px; padding: 15px 26px; }
  .note { font-size: 15px; color: var(--ink-soft); }
  .sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .src { font: 800 14px var(--body); padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

  /* phones */
  .phone { position: relative; border-radius: 40px; padding: 8px; background: linear-gradient(145deg, #5a3d2e, #24150e 60%, #3b271c);
    box-shadow: 0 30px 50px -18px rgba(40, 20, 10, .55), inset 0 2px 2px rgba(255,255,255,.25); }
  .phone img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; border-radius: 33px; }
  .fan { position: relative; height: 560px; max-width: 100%; }
  .fan .phone { position: absolute; width: 230px; }
  .fan .p1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
  .fan .p2 { left: calc(50% - 250px); top: 60px; transform: rotate(-7deg); opacity: .96; }
  .fan .p3 { left: calc(50% + 20px); top: 60px; transform: rotate(7deg); opacity: .96; }
  @media (max-width: 860px) { .fan { height: 470px; } .fan .phone { width: 196px; } .fan .p2 { left: calc(50% - 205px); } .fan .p3 { left: calc(50% + 10px); } }
  @media (max-width: 420px) { .fan { height: 400px; } .fan .phone { width: 168px; } .fan .p2 { left: calc(50% - 170px); } .fan .p3 { left: calc(50% + 2px); } }

  /* features */
  .section { padding-block: 64px; }
  .section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
  .feature { display: grid; grid-template-columns: 1fr 220px; gap: 56px; align-items: center; padding-block: 18px; max-width: 900px; margin-inline: auto; }
  .feature:nth-of-type(even) { grid-template-columns: 220px 1fr; }
  .feature:nth-of-type(even) .shot { order: -1; }
  .feature > div { min-width: 0; }
  @media (max-width: 760px) { .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 20px; } .feature .shot, .feature:nth-of-type(even) .shot { order: 2; width: 220px; margin: 0 auto; } }
  .tag { display: inline-block; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px;
    background: url('tex/knit.png') repeat, radial-gradient(circle at 35% 30%, var(--l), var(--m) 55%, var(--d)); background-size: 30px 29px, auto; background-blend-mode: overlay;
    box-shadow: 0 6px 12px -4px rgba(60, 30, 15, .45), inset 0 2px 2px rgba(255,255,255,.35); }
  .feature h3 { font: 900 clamp(24px, 3vw, 32px)/1.2 var(--display); margin: 0 0 10px; }
  .feature p { color: var(--ink-soft); max-width: 32em; font-size: 18px; }
  .units { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .unit { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--display); color: #FFF7EC; text-shadow: 0 1px 2px rgba(40, 15, 5, .5);
    background: url('tex/knit.png') repeat, radial-gradient(circle at 35% 28%, var(--l), var(--m) 55%, var(--d)); background-size: 36px 35px, auto; background-blend-mode: overlay;
    box-shadow: 0 8px 14px -5px rgba(60, 30, 15, .45), inset 0 2px 2px rgba(255,255,255,.4); }

  /* felt cards */
  .felt { position: relative; background: url('tex/boucle.png') repeat, var(--surface); background-size: 160px, auto; background-blend-mode: multiply;
    border-radius: 28px; padding: 30px; box-shadow: 0 18px 30px -16px var(--shadow), inset 0 2px 2px rgba(255,255,255,.4); min-width: 0; }
  .felt::before { content: ''; position: absolute; inset: 9px; border-radius: 21px; border: 2px dashed var(--stitch); pointer-events: none; }
  .band { background: var(--bg-2); }
  .flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
  .flag { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 800 13px var(--body); color: var(--ink-soft); }
  .flag span:first-child { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--surface); box-shadow: 0 6px 12px -5px var(--shadow); border: 1px dashed var(--stitch); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  @media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
  .plan h3 { font: 900 26px var(--display); margin: 0 0 14px; }
  .plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .plan li { display: flex; gap: 10px; align-items: baseline; }
  .plan li::before { content: '✓'; font-weight: 900; color: var(--olive); }
  .plan.premium { background: url('tex/knit.png') repeat, linear-gradient(170deg, #8A2E3E, #5E1825); background-size: 70px 67px, auto; background-blend-mode: overlay; color: #FFF6E8; }
  .plan.premium::before { border-color: rgba(255, 235, 220, .5); }
  .plan.premium li::before { color: #F0C86A; }
  .price { text-align: center; margin-top: 24px; font: 900 20px var(--display); }
  .price + .note { text-align: center; margin-top: 6px; }
  details { border-bottom: 1px dashed var(--stitch); padding-block: 16px; }
  summary { cursor: pointer; font: 900 19px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
  details[open] summary::after { content: '–'; }
  details p { color: var(--ink-soft); margin-top: 10px; max-width: 40em; }
  .support { text-align: center; }
  .mail { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
  .mail code { font: 800 19px var(--body); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; user-select: all; overflow-wrap: anywhere; }
  .copy { font: 800 15px var(--body); border: 0; cursor: pointer; }
  .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 20px; font-weight: 800; }
  footer { padding-block: 34px 50px; text-align: center; color: var(--ink-soft); font-size: 14px; }
  footer img { width: 44px; height: 44px; border-radius: 11px; margin-bottom: 8px; }
  [dir="rtl"] .fan .p2 { transform: rotate(7deg); } [dir="rtl"] .fan .p3 { transform: rotate(-7deg); }

/* nav links to the World and Pantry pages */
.navlinks { display: flex; gap: 16px; font: 800 15px var(--body); }
.navlinks a { color: var(--ink); text-decoration: none; }
.navlinks a[aria-current="page"], .navlinks a:hover { color: var(--accent); }
@media (max-width: 680px) { .navlinks { display: none; } .navlinks.mobile { display: flex; justify-content: center; padding-block: 10px 0; } }
.navlinks.mobile { display: none; }
@media (max-width: 680px) { .navlinks.mobile { display: flex; } }

/* two "more of the app" cards on the main page */
.corners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .corners { grid-template-columns: 1fr; } }
.corner { display: grid; grid-template-columns: 1fr 120px; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); }
.corner h3 { font: 900 26px var(--display); margin: 0 0 6px; }
.corner p { color: var(--ink-soft); }
.corner .go { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 900; }
.corner .phone { border-radius: 22px; padding: 5px; } .corner .phone img { border-radius: 18px; }

/* sub pages */
.page-hero { padding-block: 48px 24px; text-align: center; }
.page-hero .knit-title { font-size: clamp(46px, 8vw, 88px); }
.page-hero .lede { margin: 0 auto; }
.duo { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; }
.duo .phone { width: 240px; } .duo .phone:nth-child(1) { transform: rotate(-3deg); } .duo .phone:nth-child(2) { transform: rotate(3deg); margin-top: 30px; }
@media (max-width: 560px) { .duo .phone { width: 46%; } }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }
.points h3 { font: 900 22px var(--display); margin: 10px 0 6px; }
.points p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.chip { font: 800 15px var(--body); padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 12px -8px var(--shadow); }
.chip small { display: block; font: 700 12px var(--body); color: var(--ink-soft); }
.countries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 760px) { .countries { grid-template-columns: repeat(3, 1fr); } }
.country { text-align: center; padding: 16px 8px 14px; } .country .f { font-size: 34px; line-height: 1.2; display: block; } .country span:last-child { font: 800 15px var(--body); }
.backlink { display: inline-block; margin-top: 8px; font-weight: 900; text-decoration: none; }
