/* Fruit Island website: one stylesheet for the home page and the legal pages.
   Fonts are served from this site (no third-party requests): Baloo 2 for headings, Figtree for text. */

@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  --ink: #1d2733;
  --ink-soft: #4a5666;
  --muted: #6b7684;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --sea: #1777c9;
  --sea-soft: #e8f3fc;
  --orange: #ff8a1f;
  --orange-deep: #e06c00;
  --orange-soft: #fff3e6;
  --leaf: #3a9d45;
  --leaf-soft: #ebf7ec;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 39, 51, .06), 0 8px 24px rgba(29, 39, 51, .08);
  --head: "Baloo 2", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(23, 119, 201, .25); }
.wordmark { display: flex; flex-direction: column; font-family: var(--head); font-weight: 800; letter-spacing: -.01em; padding-top: 4px; }
.wordmark .f { font-size: 23px; line-height: .9; }
.wordmark .i { font-size: 14.5px; line-height: 1; letter-spacing: .03em; }
.wordmark .f { color: var(--orange-deep); }
.wordmark .i { color: var(--sea); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .lang {
  margin-left: 8px; border: 1px solid var(--line); font-size: 14px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav .lang svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; padding-bottom: 6px; }
  .nav { width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .lang { margin-left: auto; }
}

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(29, 39, 51, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 39, 51, .22); }
.store svg { width: 28px; height: 28px; flex-shrink: 0; }
.store small { display: block; font-size: 11.5px; line-height: 1.2; opacity: .8; font-weight: 500; letter-spacing: .02em; }
.store b { display: block; font: 700 19px/1.15 var(--body); letter-spacing: -.01em; }
.store.soon { background: #fff; color: var(--ink); border: 1.5px dashed #c9cfd8; box-shadow: none; cursor: default; }
.store.soon:hover { transform: none; }
.store.soon small { color: var(--orange-deep); opacity: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, #fff1df 0%, rgba(255, 241, 223, 0) 70%),
    radial-gradient(45% 55% at 70% 95%, #e3f2fd 0%, rgba(227, 242, 253, 0) 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--leaf); background: var(--leaf-soft); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(42px, 5.3vw, 66px); margin: 18px 0 16px; }
.hero h1 .hl { color: var(--orange-deep); }
.hero h1 .hl2 { color: var(--sea); }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); max-width: 30em; margin: 0 0 28px; }
.hero .fine { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.phones { position: relative; height: clamp(440px, 52vw, 600px); }
.phone {
  position: absolute; top: 50%; left: 50%;
  width: clamp(190px, 21vw, 262px); aspect-ratio: 1080 / 2260;
  border-radius: clamp(26px, 3vw, 36px); padding: clamp(6px, .7vw, 9px);
  background: #10161e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 24px 60px rgba(29, 39, 51, .28), 0 6px 14px rgba(29, 39, 51, .16);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(20px, 2.4vw, 28px); }
.phone.main { z-index: 3; transform: translate(-50%, -50%); animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.phone.left { z-index: 2; transform: translate(-112%, -46%) rotate(-7deg) scale(.86); animation: rise-l .9s .12s cubic-bezier(.2, .8, .2, 1) both; }
.phone.right { z-index: 1; transform: translate(12%, -46%) rotate(7deg) scale(.86); animation: rise-r .9s .2s cubic-bezier(.2, .8, .2, 1) both; }
.mascot {
  position: absolute; z-index: 4; left: 50%; bottom: 2%;
  width: clamp(74px, 8vw, 104px); border-radius: 50%;
  transform: translateX(-190%) rotate(-8deg);
  box-shadow: 0 0 0 5px #fff, 0 10px 24px rgba(29, 39, 51, .22);
  animation: pop .6s .7s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, -42%); } }
@keyframes rise-l { from { opacity: 0; transform: translate(-100%, -40%) rotate(-2deg) scale(.86); } }
@keyframes rise-r { from { opacity: 0; transform: translate(0%, -40%) rotate(2deg) scale(.86); } }
@keyframes pop { from { opacity: 0; transform: translateX(-190%) scale(.4) rotate(-30deg); } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .phones { height: clamp(400px, 110vw, 520px); margin-top: 8px; }
  .phone { width: clamp(170px, 46vw, 230px); }
}

/* ---------- home: screens gallery ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 236px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -4px;
  scrollbar-width: thin;
}
.shot { scroll-snap-align: start; margin: 0; }
.shot .frame {
  border-radius: 28px; padding: 7px; background: #10161e;
  box-shadow: 0 14px 32px rgba(29, 39, 51, .16);
  aspect-ratio: 1080 / 2260; transition: transform .2s ease;
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.shot:hover .frame { transform: translateY(-4px); }
.shot figcaption { padding: 14px 4px 0; }
.shot figcaption b { display: block; font: 800 20px/1.2 var(--head); }
.shot figcaption span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.gallery-nav button:hover { background: var(--bg-soft); }
.gallery-nav svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .gallery-nav { display: none; } }

/* ---------- home: facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; background: #fff; }
.fact .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.fact .ic svg { width: 24px; height: 24px; }
.fact h3 { font-size: 21px; margin-bottom: 6px; }
.fact p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.ic.o { background: var(--orange-soft); color: var(--orange-deep); }
.ic.s { background: var(--sea-soft); color: var(--sea); }
.ic.l { background: var(--leaf-soft); color: var(--leaf); }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0 0 26px; }
.cta .stores { justify-content: center; }

/* ---------- legal / document pages ---------- */
.doc-head { padding: clamp(36px, 6vw, 64px) 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.doc-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 10px; }
.doc-head .meta { color: var(--muted); font-size: 15px; margin: 0; }
.doc-head .intro { max-width: 52em; color: var(--ink-soft); margin: 18px 0 0; }
.crumb { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.crumb a { text-decoration: none; color: var(--muted); }
.crumb a:hover { color: var(--ink); }

.glance {
  margin: 28px 0 0; padding: 22px 24px; border-radius: var(--radius);
  background: var(--sea-soft); border: 1px solid #cfe5f7;
}
.glance h2 { font-size: 22px; margin-bottom: 10px; }
.glance ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.glance li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.glance li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (max-width: 720px) { .glance ul { grid-template-columns: 1fr; } }

.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: 36px; padding-bottom: 80px; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc summary { display: none; }
.toc .label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 2px solid var(--line); }
.toc li { counter-increment: t; }
.toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35;
}
.toc a::before { content: counter(t) ". "; color: var(--muted); font-weight: 500; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--sea); border-left-color: var(--sea); }

.prose { max-width: 46em; }
.prose section { padding-top: 8px; }
.prose section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(25px, 2.6vw, 30px); margin-bottom: 14px; }
.prose h3 { font: 700 19px/1.3 var(--body); margin: 24px 0 8px; letter-spacing: -.005em; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .note {
  border-left: 4px solid var(--orange); background: var(--orange-soft);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0;
}
.prose .note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; color: var(--ink-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 10px 48px; margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font: 800 17px/1 var(--head); padding-top: 2px;
}
.mail-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px;
  background: var(--sea); color: #fff; font-weight: 700; text-decoration: none; margin: 4px 0 12px;
}
.mail-btn:hover { background: #0f66b0; }
.mail-btn svg { width: 20px; height: 20px; }

.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding-bottom: 14px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
  .toc summary { display: block; cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc .label { display: none; }
  .toc ol { margin-bottom: 14px; }
}

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9d2dd; padding: 48px 0 36px; font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-foot .brand { color: #fff; }
.site-foot .brand img { box-shadow: none; }
.site-foot .wordmark .f { color: #ffad5c; }
.site-foot .wordmark .i { color: #7cc1f5; }
.site-foot p { margin: 14px 0 0; max-width: 26em; line-height: 1.55; }
.site-foot h4 { margin: 4px 0 12px; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #c9d2dd; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; margin-top: 8px; font-size: 13.5px; color: #93a0b0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.lost img { width: 120px; border-radius: 50%; margin: 0 auto 22px; box-shadow: 0 0 0 6px var(--sea-soft); }
.lost h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 10px; }
.lost p { color: var(--muted); margin: 0 0 26px; }
.lost .alt { margin: 18px 0 0; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--orange); color: #fff;
  font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 var(--orange-deep);
}
.btn:hover { background: #ff9733; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-head, .site-foot, .toc, .skip { display: none !important; }
  .doc { display: block; padding: 0; }
  body { font-size: 12pt; }
  a { color: inherit; }
}
