:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #142b24;
  background: #f2f7f4;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #076044; }
:focus-visible { outline: 3px solid #166aff; outline-offset: 4px; }
.top, main { width: min(100% - 32px, 900px); margin-inline: auto; }
.top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  align-items: center; padding-block: 19px; border-bottom: 1px solid #d6e5dc;
  font-size: .9rem; font-weight: 650;
}
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
main { padding-block: clamp(30px, 7vw, 74px) 48px; }
.intro { max-width: 620px; margin-bottom: 28px; }
.intro img { display: block; border-radius: 16px; margin-bottom: 17px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.13; letter-spacing: -.045em; }
.intro p, .card > p { color: #435b51; margin-top: 10px; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.card { background: #fff; border: 1px solid #d6e5dc; border-radius: 18px; padding: clamp(16px, 3vw, 24px); }
.card.recommended { border-color: #008552; box-shadow: inset 0 0 0 1px #008552; }
.card-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; }
h2 { font-size: 1.28rem; }
.match { color: #07553b; background: #e4f5ea; padding: 2px 8px; border-radius: 8px; font-size: .78rem; font-weight: 650; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 10px 16px; background: #076044; color: #fff; border-radius: 10px;
  border: 0; cursor: pointer; font: inherit; text-decoration: none; font-weight: 680; margin-block: 15px 7px; text-align: center;
}
.button:hover { background: #054a34; }
.button:disabled { opacity: .65; cursor: default; }
.button[aria-disabled="true"] { color: #3d5950; background: #e6eee9; cursor: default; }
.status { font-size: .89rem; }
.install-guide { border: 0; margin-top: 0; padding-top: 0; }
.install-guide > summary::-webkit-details-marker { display: none; }
.install-guide > .status { margin-top: 10px; color: #435b51; }
details { border-top: 1px solid #e5eee9; margin-top: 12px; padding-top: 10px; }
summary { cursor: pointer; color: #10533d; font-weight: 640; padding-block: 3px; }
.steps { padding-left: 23px; }
.steps li + li { margin-top: 8px; }
.illustrated { padding: 0; margin: 12px 0 2px; list-style: none; display: grid; gap: 8px; }
.illustrated li { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 10px; background: #f0f7f3; }
.illustrated svg {
  width: 36px; height: 36px; flex-shrink: 0; padding: 6px; border-radius: 8px;
  background: #dcefe4; color: #076044; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.illustrated small { display: block; color: #435b51; font-size: .85rem; }
@media (max-width: 650px) { .platforms { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .button { width: 100%; } }

.desktop-card { grid-column: 1 / -1; }
.menu-hint { margin: 8px 0 0; color: #435b51; }
.installed-card { max-width: 620px; }
.install-modal {
  position: fixed; inset: 0; width: min(calc(100% - 26px), 480px);
  max-height: 87vh; max-height: 87dvh; margin: auto; overflow: auto;
  border: 1px solid #d6e5dc; border-radius: 22px; padding: clamp(17px, 5vw, 25px);
  color: #142b24; background: #fff; box-shadow: 0 20px 70px #08271d45;
}
.install-modal::backdrop { background: #1028209e; }
.modal-header { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.modal-header img { display: block; flex: none; border-radius: 13px; }
.modal-header h2 { font-size: clamp(1.05rem, 4.8vw, 1.3rem); line-height: 1.25; }
.modal-header p, #ios-dialog-description { color: #435b51; }
.modal-header p { font-size: .87rem; margin-top: 2px; overflow-wrap: anywhere; }
#ios-dialog-description { margin-top: 13px; }
.modal-dismiss { position: absolute; top: 10px; right: 10px; }
.icon-button {
  width: 36px; height: 36px; border: 0; border-radius: 50%; font: inherit; font-size: 1.55rem;
  line-height: 1; color: #214737; background: #edf5f0; cursor: pointer;
}
.browser-notice { margin-top: 12px; padding: 9px 11px; border-radius: 10px; background: #fff3d9; color: #584011; font-size: .89rem; }
.text-button { margin-top: 7px; padding: 0; border: 0; background: transparent; font: inherit; text-decoration: underline; color: #07553b; cursor: pointer; }
.copy-status { margin-top: 4px; overflow-wrap: anywhere; }
.browser-preview { margin-top: 13px; }
.preview-label { margin-bottom: 5px; color: #435b51; font-size: .8rem; }
.preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid #d6e5dc; background: #f2f6f3; border-radius: 12px; padding: 5px 10px;
}
.preview-address { color: #435b51; font-size: .84rem; overflow-wrap: anywhere; }
.preview-target {
  position: relative; flex: none; width: 36px; height: 34px; display: grid;
  place-items: center; color: #07553b; background: #d9f1e4; border-radius: 8px;
}
.preview-share { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-arrow {
  position: absolute; top: -24px; left: 9px; font-weight: 800; font-size: 1.25rem;
  line-height: 1; color: #07553b; animation: share-nudge .9s ease-in-out infinite alternate;
}
.preview-menu { display: none; font-size: 1.3rem; line-height: 1; }
[data-layout="embedded"] .preview-share, [data-layout="other"] .preview-share { display: none; }
[data-layout="embedded"] .preview-menu, [data-layout="other"] .preview-menu { display: block; }
@keyframes share-nudge { to { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .preview-arrow { animation: none; } }
.modal-steps { margin: 13px 0 0; padding-left: 22px; font-size: .91rem; }
.modal-steps li + li { margin-top: 7px; }
.modal-actions { display: flex; justify-content: flex-end; }
.modal-actions .button { margin-bottom: 0; }

[data-layout="safari"] .preview-bar { flex-direction: column; padding: 6px 10px; }
[data-layout="safari"] .preview-target { margin-top: 2px; }
[data-layout="safari"] .preview-arrow { top: 6px; left: -24px; animation-name: safari-share-nudge; }
@keyframes safari-share-nudge { to { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  [data-layout="safari"] .preview-arrow { animation: none; }
}
