/* Flecipe website styles */
:root {
  --ivory: #FBF7EF;
  --sand: #F3EBDC;
  --sand-dark: #EFE3CC;
  --line: #EDE4D3;
  --yellow: #F4DB76;
  --green: #22302A;
  --green-hover: #33463C;
  --muted: #4E5B54;
  --text-body: #33413A;
  --placeholder: #D8D4CC;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--green);
  font-family: 'Quicksand', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: none; }
a { color: var(--green); }
a:hover { color: #3D5247; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--ivory); }
.hdr { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo img { display: block; }
.logo span { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav a { position: relative; display: inline-block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 4px; }
.nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* App Store button (replace with Apple's official badge before launch) */
.appstore { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--green); color: var(--ivory); border-radius: 14px; padding: 10px 20px 10px 16px; min-height: 52px; }
.appstore:hover { background: var(--green-hover); color: var(--ivory); }
.appstore .as-text { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .as-small { font-size: 12px; font-weight: 500; }
.appstore .as-big { font-size: 20px; font-weight: 700; }
.appstore.sm { min-height: 44px; padding: 6px 14px 6px 12px; border-radius: 12px; }
.appstore.sm .as-small { font-size: 10px; }
.appstore.sm .as-big { font-size: 16px; }

/* Sections */
.sec { padding: 104px 0; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sec-head { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.sec-head h2, .panel h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.chip { align-self: start; display: inline-flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.hero h1 { margin: 0; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; }
.hero .lead { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; font-weight: 500; color: var(--muted); max-width: 34ch; }
.cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.cta-note { font-size: 15px; font-weight: 600; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.hero-circle { position: absolute; width: min(520px, 96%); aspect-ratio: 1; border-radius: 50%; background: var(--sand); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-dot { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: var(--yellow); top: 8%; right: 8%; opacity: 0.9; }

/* iPhone frames */
.phone { position: relative; width: min(350px, 82vw); aspect-ratio: 9 / 19.5; background: var(--green); border-radius: 56px; padding: 12px; box-shadow: 0 30px 60px -24px rgba(34, 48, 42, 0.35); }
.phone .screen { width: 100%; height: 100%; background: var(--placeholder); border-radius: 45px; position: relative; overflow: hidden; }
.phone .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.island { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 104px; height: 30px; border-radius: 16px; background: var(--green); }
.phone-top { width: 200px; height: 300px; background: var(--green); border-radius: 34px 34px 0 0; padding: 8px 8px 0; }
.phone-top .screen { width: 100%; height: 100%; background: var(--placeholder); border-radius: 27px 27px 0 0; position: relative; overflow: hidden; }
.phone-top .screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-top .island { top: 9px; width: 60px; height: 18px; border-radius: 10px; }

/* Decorative flowers */
.fl { position: absolute; display: block; pointer-events: none; width: auto; }
.hf-a { left: calc(50% - 292px); bottom: 10px; height: 210px; z-index: 1; }
.hf-b { left: calc(50% - 212px); bottom: 6px; height: 150px; z-index: 2; }
.hf-c { right: calc(50% - 292px); bottom: 10px; height: 190px; z-index: 1; }
.sf-a { left: 5%; bottom: -8px; height: 170px; }
.sf-b { left: 13%; bottom: -8px; height: 120px; }
.sf-c { right: 13%; bottom: -8px; height: 150px; }
.sf-d { right: 5%; bottom: -8px; height: 125px; }

/* Grids and cards */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.features-wrap { display: flex; flex-direction: column; gap: 56px; }
.feature { background: var(--sand); border-radius: 32px; padding: 32px 28px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.num { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.feature h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.25; font-weight: 700; }
.feature p, .step p { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--muted); }
.feature .shot { display: flex; justify-content: center; margin-top: auto; padding-top: 20px; }

/* Getting started */
.panel { background: var(--sand); border-radius: 40px; padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px); display: flex; flex-direction: column; gap: 48px; }
.panel-head { display: flex; flex-direction: column; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { background: var(--ivory); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step .num { width: 48px; height: 48px; border-radius: 16px; font-size: 22px; }
.step h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.3; font-weight: 700; }

/* Pricing */
.pricing-wrap { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.sec-head .sub { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.plans { width: 100%; max-width: 860px; }
.plan { background: var(--sand); border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.plan.best { box-shadow: inset 0 0 0 3px var(--yellow); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { margin: 0; font-size: 22px; font-weight: 700; }
.badge { background: var(--yellow); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
.price .per { font-size: 18px; font-weight: 600; color: var(--muted); }
.trial { margin: 0; font-size: 16px; font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 500; }
.btn { margin-top: auto; text-align: center; text-decoration: none; font-weight: 700; font-size: 17px; border-radius: 16px; padding: 14px 20px; border: 2px solid var(--green); }
.btn.solid { background: var(--green); color: var(--ivory); }
.btn.solid:hover { background: var(--green-hover); color: var(--ivory); }
.fine-print { margin: 0; max-width: 640px; text-align: center; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
details.faq { background: var(--sand); border-radius: 24px; padding: 0 28px; }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; min-height: 44px; font-size: 19px; font-weight: 700; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq .chev { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ivory); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
details.faq[open] .chev { transform: rotate(45deg); }
details.faq p { margin: 0; padding: 0 0 26px; font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--muted); }

/* Support */
.sbox { position: relative; overflow: hidden; background: var(--yellow); border-radius: 40px; padding: clamp(40px, 6vw, 80px) 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.sbox h2 { position: relative; margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.sbox p { position: relative; margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.sbox a { font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.foot-brand img { display: block; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.foot nav a { display: inline-block; padding: 10px 0; }

/* Back to top */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--ivory); display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(34, 48, 42, 0.45); opacity: 0; visibility: hidden; }
.totop.show { opacity: 1; visibility: visible; }
.totop:hover { background: var(--green-hover); color: var(--ivory); }

/* Text pages (Privacy Policy, Terms of Use) */
.legal { padding: clamp(56px, 8vw, 96px) 24px clamp(72px, 10vw, 120px); }
.legal article { max-width: 720px; margin: 0 auto; }
.legal-head { background: var(--sand); border-radius: 32px; padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.legal-head .badge { align-self: start; }
.legal-head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.legal-head .updated { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
.prose h2 { font-size: 24px; line-height: 1.3; font-weight: 700; margin: 48px 0 12px; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; font-weight: 500; color: var(--text-body); margin: 0 0 18px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 700; }

.legal-head .lead { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.prose h3 { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 28px 0 8px; }
.prose .meta { color: var(--muted); }
.fine-print a { font-weight: 700; }
.sbox .sbox-more { font-size: 17px; }

/* "Coming soon" note shown by the App Store buttons until the app is live */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 16px); max-width: calc(100% - 32px); background: var(--green); color: var(--ivory); border-radius: 16px; padding: 14px 22px; font-size: 16px; font-weight: 600; text-align: center; box-shadow: 0 14px 30px -10px rgba(34, 48, 42, 0.5); opacity: 0; visibility: hidden; transition: opacity .2s, transform .3s var(--spring), visibility .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Press and hover animations */
.nav a, .foot nav a { transition: transform .22s var(--spring); }
.appstore, .totop, .btn, .logo { transition: transform .22s var(--spring), background-color .2s, box-shadow .2s, opacity .2s, visibility .2s; }
.appstore:hover, .btn:hover, .totop:hover { transform: translateY(-2px) scale(1.05); }
.btn:hover { box-shadow: 0 10px 20px -10px rgba(34, 48, 42, 0.45); }
.nav a:active { transform: scale(.9); transition-duration: .08s; }
.appstore:active, .btn:active, .totop:active, .logo:active { transform: scale(.94); transition-duration: .08s; }
.foot nav a:hover { transform: translateY(-2px); }
.foot nav a:active { transform: scale(.92); transition-duration: .08s; }
details.faq { transition: transform .22s var(--spring), background-color .2s; }
details.faq:hover { background: var(--sand-dark); }
details.faq:has(summary:active) { transform: scale(.985); transition-duration: .08s; }
details.faq .chev { transition: transform .3s var(--spring), background-color .2s; }
details.faq:hover .chev { background: var(--yellow); }

/* Tablet */
@media (max-width: 980px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
  .hero .chip { align-self: center; }
  .hero .lead { margin: 0 auto; }
  .hero .cta { justify-content: center; }
}

/* Phone */
@media (max-width: 760px) {
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 20px; overflow-x: auto; padding-bottom: 4px; }
  .hdr .spacer { flex: 1; }
  .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 72px !important; padding-bottom: 72px !important; }
  .totop { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .hf-a { left: -2%; bottom: -30px; height: 130px; }
  .hf-b { left: 11%; bottom: -36px; height: 90px; }
  .hf-c { right: -2%; bottom: -30px; height: 125px; }
  .sbox { padding-bottom: 130px; }
  .sf-a { left: 6%; height: 115px; }
  .sf-b { left: 24%; height: 85px; }
  .sf-c { right: 24%; height: 100px; }
  .sf-d { right: 6%; height: 85px; }
  .prose p, .prose li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
