:root {
  color-scheme: light;
  --paper: #f7f8f3;
  --white: #fff;
  --ink: #152c26;
  --muted: #4f625b;
  --green: #145b49;
  --green-dark: #103b30;
  --line: #dce5de;
  --soft: #ebf1e9;
  --radius: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid #238069; outline-offset: 5px; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(1160px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 4;
  top: .6rem;
  left: .6rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-170%);
}
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3.2vw, 2.5rem); }
.brand { display: inline-flex; align-items: center; gap: .66rem; color: var(--ink); font-size: 1.08rem; font-weight: 760; text-decoration: none; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 37px; height: 37px; border-radius: 10px; }
.top-nav { display: flex; align-items: center; justify-self: end; gap: clamp(1rem, 3.3vw, 2.5rem); }
.top-nav a { color: var(--ink); font-size: .93rem; font-weight: 620; text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.top-nav .nav-contact { border: 1px solid #c7d8cd; padding: .48rem .94rem; border-radius: 999px; }
.top-nav .nav-contact:hover { background: var(--soft); text-decoration: none; }

.locale-nav { display: inline-flex; justify-self: end; gap: .12rem; padding: .17rem; border: 1px solid var(--line); border-radius: 10px; }
.locale-nav a { display: grid; min-width: 2.15rem; min-height: 2.15rem; place-items: center; border-radius: 7px; color: var(--muted); font-size: .875rem; font-weight: 690; text-decoration: none; }
.locale-nav a:hover { background: var(--soft); color: var(--green-dark); }
.locale-nav a[aria-current="page"] { background: var(--green-dark); color: var(--white); }

.home-hero { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(1.65rem, 4vw, 4.2rem); align-items: center; padding-block: 3.8rem 3.6rem; }
.hero-intro { min-width: 0; }
.author { margin-bottom: 1.2rem; color: var(--muted); font-size: 1rem; font-weight: 650; }
.home-hero h1, .app-hero h1, .document h1 { font-weight: 780; letter-spacing: -.065em; line-height: 1.01; }
.home-hero h1 { font-size: clamp(3.25rem, 6.45vw, 6.1rem); }
.home-hero h1 span { display: block; color: var(--green); }
.lead { max-width: 34ch; margin-top: 1.45rem; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.53; text-wrap: pretty; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.05rem; margin-top: 1.72rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; border: 1px solid var(--green-dark); border-radius: 11px; padding: .6rem 1.05rem; background: var(--green-dark); color: var(--white); font-size: .94rem; font-weight: 680; line-height: 1.24; text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.button:hover { border-color: var(--green); background: var(--green); color: var(--white); }
.button.secondary { border-color: #c7d8cd; background: transparent; color: var(--green-dark); }
.button.secondary:hover { border-color: #9ab7a7; background: var(--soft); }
.text-link { font-weight: 660; }

.showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.25;
  border: 1px solid #234d3e;
  border-radius: 30px;
  background: radial-gradient(ellipse at 55% 13%, #386856, transparent 72%), #132f28;
}
.showcase::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#d2ebd818 1px, transparent 1px), linear-gradient(90deg, #d2ebd818 1px, transparent 1px);
  background-position: center;
  background-size: 37px 37px;
  mask-image: radial-gradient(ellipse at center, #000 20%, #0008 70%, transparent);
  content: "";
}
.phone { overflow: hidden; border: clamp(4px, .55vw, 7px) solid #0c1614; border-radius: clamp(14px, 2.6vw, 31px); background: #0c1614; box-shadow: 0 14px 35px #06181165, 0 0 0 1px #ffffff30; }
.phone img { width: 100%; height: auto; }
.showcase .phone { position: absolute; width: 29.4%; }
.showcase .phone-photo { top: 21%; left: 10.2%; transform: rotate(-14deg); }
.showcase .phone-map { top: 22%; right: 10%; transform: rotate(13deg); }
.showcase .phone-studio { z-index: 1; top: 9.4%; left: 34.6%; width: 30.8%; transform: rotate(-3deg); }

.catalog { border-top: 1px solid var(--line); padding-block: 2.25rem 3.7rem; }
.section-heading { font-size: clamp(1.85rem, 3.5vw, 2.85rem); font-weight: 750; letter-spacing: -.052em; line-height: 1.12; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.app-card { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.14rem, 2vw, 1.55rem); background: var(--white); }
.card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; width: 100%; margin-bottom: 1.15rem; }
.app-icon { width: 58px; height: 58px; border-radius: 14px; box-shadow: inset 0 0 0 1px #132b1910; }
.status { display: inline-flex; align-items: center; gap: .42rem; width: fit-content; border-radius: 999px; padding: .27rem .68rem; background: #edf0ea; color: #40544a; font-size: .875rem; line-height: 1.4; font-weight: 650; }
.status.live { background: #dff0e4; color: #20543d; }
.status.live::before { width: .42rem; height: .42rem; border-radius: 50%; background: #318157; content: ""; }
.app-card h3 { font-size: clamp(1.18rem, 1.8vw, 1.48rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.14; }
.app-card p { margin-block: .7rem 1.18rem; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.card-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: auto; font-size: .93rem; }

.directory { display: grid; grid-template-columns: .88fr 1.12fr; gap: 2rem; align-items: start; border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 3rem); background: var(--soft); }
.directory h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); overflow-wrap: anywhere; }
.directory p { max-width: 30ch; margin-top: .7rem; color: var(--muted); }
.policy-list { margin: 0; padding: 0; list-style: none; }
.policy-list li:first-child { border-top: 1px solid #cedcd1; }
.policy-list li { border-bottom: 1px solid #cedcd1; }
.policy-list a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 53px; padding: .6rem .15rem; text-decoration: none; }
.policy-list a:hover .policy-name { text-decoration: underline; }
.policy-name { color: var(--ink); font-weight: 670; line-height: 1.28; }
.policy-action { font-weight: 630; font-size: .9rem; }

.support { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 3.3rem 0; }
.support p { max-width: 58ch; margin-top: .5rem; color: var(--muted); }
.support .button { flex-shrink: 0; }
.footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; font-size: .91rem; }
.footer a { color: inherit; overflow-wrap: anywhere; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-block: 1.7rem 1.4rem; color: var(--muted); font-size: .93rem; }
.breadcrumbs a { font-weight: 630; }
.breadcrumb-divider { color: #657b71; }
.app-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-bottom: 3.45rem; }
.app-hero h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); text-wrap: balance; }
.app-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.2rem; }
.app-meta p { color: var(--muted); font-size: .93rem; font-weight: 600; }
.app-hero .lead { max-width: 39ch; }
.app-visual { display: grid; min-height: 400px; place-items: center; overflow: hidden; border: 1px solid #213e36; border-radius: 28px; padding: 1.45rem; background: radial-gradient(ellipse at 40% 22%, #406c5a, #142f27 87%); }
.app-visual.photo { border-color: #4b4055; background: radial-gradient(ellipse at 40% 22%, #6c527f, #312940 87%); }
.app-visual.map { border-color: #2f4f58; background: radial-gradient(ellipse at 40% 22%, #497d7a, #153c44 87%); }
.app-visual .phone { width: min(173px, 64%); }
.feature-section { border-block: 1px solid var(--line); padding: 2.2rem 0 2.7rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); margin-top: 1.36rem; }
.feature-grid h3 { font-size: 1.14rem; line-height: 1.28; }
.feature-grid p { margin-top: .55rem; color: var(--muted); text-wrap: pretty; }
.help-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1.5rem 3.25rem; padding-block: 2.7rem; }
.help-intro > p { color: var(--muted); margin-block: .75rem; }
.help-intro .help-contact { display: inline-block; padding-block: .35rem; overflow-wrap: anywhere; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .93rem .1rem; font-weight: 670; line-height: 1.32; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--green); font-size: 1.35rem; font-weight: 500; line-height: 1; content: "+" / ""; }
.faq details[open] summary::after { content: "−" / ""; }
.faq details p { max-width: 65ch; margin: 0 .1rem 1rem; color: var(--muted); }
.app-docs { padding: 1.45rem 1.65rem; margin-bottom: 3.2rem; border-radius: 18px; background: var(--soft); }
.app-docs h2 { margin-bottom: .55rem; font-size: 1.2rem; letter-spacing: -.02em; }
.app-docs ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.app-docs a { display: inline-block; padding-block: .25rem; }
.app-notice { border-left: 3px solid #5a8777; margin-top: 1.2rem; padding: .25rem 0 .25rem .9rem; color: var(--muted); }

.document { padding: .75rem 0 3.7rem; }
.document-head { max-width: 880px; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.document-app { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.15rem; font-weight: 690; text-decoration: none; }
.document-app img { width: 37px; height: 37px; border-radius: 10px; }
.document h1 { font-size: clamp(2.1rem, 5vw, 4.25rem); overflow-wrap: anywhere; }
.document-date { margin-top: .85rem; color: var(--muted); font-size: .95rem; }
.document-layout { display: grid; grid-template-columns: minmax(12rem, .75fr) minmax(0, 2.25fr); gap: clamp(1.8rem, 5vw, 4.3rem); margin-top: 1.75rem; }
.document-layout.no-toc { display: block; }
.document-toc { align-self: start; border-radius: 14px; padding: 1rem 1.15rem; background: var(--soft); }
.document-toc p { font-weight: 720; }
.document-toc ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.document-toc a { display: inline-block; padding-block: .27rem; color: var(--green-dark); font-size: .91rem; line-height: 1.25; }
.document-copy { max-width: 72ch; color: #2f433b; overflow-wrap: anywhere; }
.document-copy > :first-child { margin-top: 0; }
.document-copy h2 { margin: 1.7rem 0 .55rem; color: var(--ink); font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.26; }
.document-copy section:first-child h2 { margin-top: 0; }
.document-copy p { margin-bottom: .78rem; }
.document-copy .policy-lead { margin-bottom: 1.5rem; font-size: 1.12rem; color: var(--ink); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 3rem); }
  .home-hero { gap: 1.7rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .masthead-inner { min-height: 67px; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding-block: .75rem .6rem; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; flex-wrap: wrap; gap: .2rem .65rem; }
  .locale-nav { grid-column: 2; grid-row: 1; }
  .top-nav .nav-contact { padding: .35rem .64rem; }
  .home-hero { grid-template-columns: 1fr; padding-block: 2.7rem 2.3rem; }
  .home-hero h1 { font-size: clamp(3rem, 10vw, 5.2rem); }
  .showcase { width: min(100%, 32rem); }
  .catalog { padding-block: 1.75rem 2.55rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card-top { flex-direction: row; align-items: center; }
  .directory { grid-template-columns: 1fr; gap: 1rem; }
  .support { align-items: flex-start; flex-direction: column; padding-block: 2.5rem; }
  .app-hero { gap: 1.6rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
  .app-visual { width: min(100%, 30rem); min-height: initial; }
  .feature-grid { grid-template-columns: 1fr; }
  .help-section { grid-template-columns: 1fr; gap: .9rem; padding-block: 2.1rem; }
  .document-layout { grid-template-columns: 1fr; gap: 1.35rem; }
  .document-toc ul { display: flex; flex-wrap: wrap; column-gap: 1rem; }
}

@media (max-width: 495px) {
  .shell { width: calc(100% - 2rem); }
  .top-nav a { font-size: .87rem; }
  .top-nav .nav-contact { border: 0; padding: .36rem 0; }
  .home-hero { padding-top: 2.1rem; }
  .home-hero h1 { font-size: clamp(2.55rem, 10vw, 3.55rem); }
  .author { margin-bottom: .8rem; }
  .lead { margin-top: 1.05rem; }
  .actions { gap: .65rem; margin-top: 1.18rem; }
  .button { padding-inline: .8rem; }
  .showcase { border-radius: 20px; }
  .directory { border-radius: 18px; }
  .policy-list a { gap: .55rem; }
  .policy-action { font-size: .86rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .breadcrumbs { margin-top: 1.15rem; }
  .app-docs { padding: 1.2rem; }
  .document h1 { font-size: clamp(1.68rem, 7.3vw, 2.1rem); }
}

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

@media print {
  body { background: white; }
  .masthead, .footer, .breadcrumbs, .document-toc, .skip-link { display: none; }
  .shell { width: 100%; }
  .document-layout { display: block; }
  .document-copy { max-width: none; }
  .document-copy h2 { break-after: avoid; }
}
