/* Fenliloop product page. Organic tones like the app: cream, walnut, dark brown; Fraunces Soft for headings,
   SF Rounded for text. Always light, like the app in light mode (tokens from PixelCrochet/Shared/Theme.swift). */
@font-face { font-family: "Fraunces Soft"; src: url("assets/fonts/FrauncesSoft-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F5EAD8;
  --surface: #FCF6EE;
  --tint: #EFD9C0;
  --line: rgba(140, 112, 91, .30);  /* outline brown #8C705B */
  --text: #3A281C;
  --text2: #6B5442;
  --accent: #7A5236;
  --accent-text: #6E4528;
  --accent-line: #B08558;
  --on-accent: #FFF8EF;
  --phone: #FCF6EE;
  --shadow: 0 24px 60px rgba(90, 60, 35, .22), 0 4px 14px rgba(90, 60, 35, .12);
  --display: "Fraunces Soft", ui-serif, Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--rounded);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; color: var(--text); letter-spacing: -.01em; }
p { margin: 0; }
code { font: .92em ui-monospace, Menlo, monospace; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--accent);
  color: var(--on-accent); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--display); color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.langs { display: flex; padding: 3px; border-radius: 999px; background: var(--tint); }
.langs a { min-width: 44px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center;
  text-decoration: none; color: var(--accent-text); }
.langs a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.hero-text { text-align: center; }
.logo { width: min(200px, 52vw); margin: 0 auto; filter: drop-shadow(0 14px 28px rgba(90, 60, 35, .18)); }
.hero h1 { font-size: clamp(48px, 9vw, 84px); letter-spacing: -.02em; }
.subtitle { margin-top: 6px; font: 600 clamp(22px, 3.4vw, 30px)/1.2 var(--display); color: var(--accent-text); }
.lead { margin: 22px auto 0; max-width: 34em; color: var(--text); }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 14px;
  background: var(--text); color: var(--bg); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: 11px; opacity: .85; }
.store b { font-size: 18px; font-weight: 600; }
.store[aria-disabled="true"] { cursor: default; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--tint); color: var(--accent-text); }
.facts { width: 100%; margin-top: 6px; font-size: 15px; color: var(--text2); }

/* Phone frame around the screenshots */
.phone { margin: 0 auto; width: min(290px, 78vw); padding: 9px; border-radius: 46px; background: var(--phone); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone img { width: 100%; border-radius: 38px; }
.split .wrap > div.cards { grid-column: 1 / -1; max-width: none; justify-self: stretch; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .logo { animation: settle .9s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(16px) rotate(-3deg); } to { opacity: 1; transform: none; } }
}

/* A row of crochet stitches as a divider */
.stitches { height: 18px; background: var(--accent-line); opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Cpath d='M3 3c2 6 5 10 9 12M21 3c-2 6-5 10-9 12' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 18px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Cpath d='M3 3c2 6 5 10 9 12M21 3c-2 6-5 10-9 12' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 18px; }

/* Sections */
main > section { padding: 64px 0; }
main > section + section { border-top: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.split .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.split h2, .head h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 16px; }
.split .wrap > div { max-width: 34em; }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
/* Icon column + text column; the 20px icon sits centered on the first line: (line-height − icon) / 2. */
.ticks li { --lh: 1.6em; display: flex; align-items: flex-start; gap: 12px; line-height: var(--lh); }
.ticks .tick { flex: 0 0 auto; width: 20px; height: 20px; margin-top: calc((var(--lh) - 20px) / 2); }
.ticks li > span { flex: 1 1 auto; min-width: 0; }
.ticks b { font-weight: 600; }

.head { max-width: 40em; margin-bottom: 36px; }
.head p:last-child { color: var(--text2); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card { padding: 22px 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--text2); font-size: 16px; }

/* Privacy in one sentence */
.privacy .panel { position: relative; max-width: 820px; margin: 0 auto; padding: 36px 26px; border-radius: 28px; text-align: center;
  background: var(--tint); }
.lock { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--accent-text); display: block; }
.privacy h2 { font-size: clamp(26px, 3.6vw, 34px); }
.privacy .one { margin: 14px auto 16px; max-width: 30em; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; }
.privacy a { font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 1em; color: var(--accent-text); font-size: 20px; line-height: 1; }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding: 0 20px 18px 50px; color: var(--text2); }

/* Final call to action */
.final { text-align: center; }
.final img { width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 24px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(30px, 4.2vw, 44px); }
.final p { margin: 14px auto 0; max-width: 32em; color: var(--text2); }
/* Centered sections keep their buttons centered at every width (the hero's .cta turns left-aligned on desktop). */
.final .cta, .notfound .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--text2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--text2); }
footer a[aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: none; }
footer .legal { width: 100%; font-size: 13px; }

/* Text pages (privacy) */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin: 6px 0 20px; }
.doc h2 { font-size: 26px; margin: 44px 0 6px; }
.doc h3 { font-size: 20px; margin: 26px 0 4px; }
.doc p, .doc li { color: var(--text); }
.doc p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .note { margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: var(--tint); }
.doc .stand { margin-top: 44px; color: var(--text2); font-size: 15px; }

/* Not found */
.notfound { padding: 72px 0 96px; text-align: center; }
.notfound img { width: 140px; margin: 0 auto 22px; }
.notfound h1 { font-size: clamp(30px, 5vw, 44px); }
.notfound p { margin: 12px auto 26px; color: var(--text2); }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; }
  .hero-text { text-align: left; }
  .logo { order: 2; width: 100%; max-width: 380px; }
  .lead { margin-left: 0; }
  .hero .cta { justify-content: flex-start; }
  .phone { width: 300px; }
  main > section { padding: 96px 0; }
  .split .wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 80px; justify-content: center; }
  .split.flip .wrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .split.flip .phone { order: 2; }
  .split .wrap > div { justify-self: start; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .privacy .panel { padding: 48px 40px; }
}
