body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 20; padding: 10px 16px; background: white; color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.profile { background: #e6eeea; border-color: #d8e4df; color: #526a65; font-family: inherit; }
.port-phones .port-lower, .port-phones .port-upper, .secondary-card .tile-device { position: absolute; display: block; width: 29%; transform: none; }
.port-phones .port-lower { right: 29%; top: 45%; }
.port-phones .port-upper { right: 4%; top: 15%; }
.port-phones .device-display img { position: static; width: 100%; filter: none; }
.secondary-card .tile-device { width: 27%; right: 5%; top: 19px; z-index: -1; }
.directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.directory-status { display: block; color: var(--muted); }

.device { position: relative; display: block; margin-inline: auto; padding: var(--bezel); background: linear-gradient(132deg,#aeb9bf 0%,#556167 13%,#9ea8aa 31%,#2c3438 57%,#a4adb2 87%,#465258 100%); box-shadow: 0 18px 36px #08202636, 0 1px 2px #0c20287a, inset 0 0 0 1px #dce8e587; }
.device-phone { --bezel: clamp(3px, 1.1vw, 8px); width: 100%; max-width: 238px; border-radius: 14% / 7%; }
.device-phone::before, .device-phone::after { content: ""; position: absolute; z-index: -1; width: 2px; background: #617074; border-radius: 1px; }
.device-phone::before { left: -2px; top: 22%; height: 9%; }
.device-phone::after { right: -2px; top: 28%; height: 11%; }
.device-display { display: block; overflow: hidden; background: #101819; }
.device-phone .device-display { border-radius: 11.5% / 5.5%; outline: 2px solid #162125; }
.device-display img { display: block; width: 100%; height: auto; }
.device-desktop { --bezel: 7px; max-width: 100%; width: 100%; border-radius: 10px; background: linear-gradient(140deg,#788991,#283b42 45%,#9aabb0); }
.device-desktop .device-display { border-radius: 5px; }
.port-phones .device-phone, .tile-device .device-phone { --bezel: clamp(3px, .45vw, 6px); }
.port-phones .device-phone { box-shadow: 0 15px 28px #020d117a, inset 0 0 0 1px #d4dcdca0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 24px 0 17px; color: var(--muted); font-size: .85rem; font-weight: 750; }
.breadcrumb a:hover { color: var(--teal); text-decoration: underline; }
.product-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.89fr); align-items: center; gap: clamp(26px,5vw,78px); padding-block: 4px 48px; border-bottom: 1px solid var(--line); }
.product-hero-desktop { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); }
.eyebrow { display: flex; gap: 11px; align-items: center; margin-bottom: 13px; color: var(--teal); font-size: .84rem; font-weight: 800; }
.eyebrow span { color: var(--ink); background: var(--mint); padding: 4px 8px; border-radius: 5px; }
.product-copy h1, .reading-head h1 { font-size: clamp(2.6rem,6vw,5.25rem); line-height: 1.02; letter-spacing: -.065em; font-weight: 800; overflow-wrap: anywhere; }
.product-intro { max-width: 40ch; margin-top: 19px; color: var(--muted); font-size: clamp(1rem,1.7vw,1.22rem); line-height: 1.68; }
.product-stage { display: grid; place-items: center; overflow: hidden; isolation: isolate; align-self: stretch; min-height: 405px; padding: 27px; border-radius: 12px; background: radial-gradient(ellipse at 57% 36%, #538b89, transparent 52%), linear-gradient(145deg, #245659, #143438 72%); }
.product-stage .device-phone { max-width: 229px; }
.product-hero-desktop .product-stage { min-height: 305px; background: radial-gradient(ellipse at 56% 42%, #4c7778, #14383c 85%); }
.store-editions { display: grid; gap: 14px; margin-top: 25px; }
.store-editions h2 { font-size: .9rem; font-weight: 800; margin-bottom: 6px; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-links .primary-action { min-height: 46px; justify-content: space-between; gap: 16px; padding: 9px 14px; }
.store-links .primary-action:nth-child(2) { background: #dfede8; color: #145850; }
.store-links .primary-action:nth-child(2):hover { background: #cce4db; }

.page-section { padding-block: 36px 41px; border-bottom: 1px solid var(--line); }
.page-section:last-child { border-bottom: 0; padding-bottom: 62px; }
.page-section h2, .reading-links h2 { font-size: clamp(1.8rem,3.8vw,3rem); line-height: 1.09; letter-spacing: -.05em; font-weight: 800; margin-bottom: 19px; }
.capability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.capability { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #f0f4f0; }
.capability h3, .comparison h3, .request-panel h3 { font-size: 1.15rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.capability p, .request-panel p { margin-top: 8px; color: var(--muted); }
.screenshot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 14px; }
.screenshot-grid-desktop { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screenshot-panel { display: grid; align-items: center; min-height: 100%; padding: clamp(16px,2.7vw,34px); border-radius: 10px; background: linear-gradient(150deg,#dceae5,#c6dcd7); isolation: isolate; }
.screenshot:nth-child(2) .screenshot-panel { background: linear-gradient(150deg,#e1e9eb,#cddde2); }
.screenshot:nth-child(3) .screenshot-panel { background: linear-gradient(150deg,#e4ebe4,#cfded4); }
.screenshot figcaption { padding: 10px 0 2px; color: var(--muted); font-size: .89rem; font-weight: 750; text-align: center; }
.resource-list { display: grid; border-top: 1px solid var(--line); }
.resource-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-weight: 750; }
.resource-list a > span:last-child { color: var(--teal); }
.resource-list a:hover { color: var(--teal); }
.resource-list small { color: var(--muted); }

.price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.price-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price-card .license-price { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0; }
.license-price small { font-size: .9rem; color: var(--muted); }
.price-card .primary-action, .price-card .simple-link { margin-top: auto; }
.comparison { margin-top: 25px; }
.comparison table { width: 100%; border-collapse: collapse; margin-top: 9px; }
.comparison :is(th,td) { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }
.request-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-top: 26px; padding: 24px; background: #e6efeb; border-radius: 10px; }
.request-panel form, .form-field { display: grid; gap: 5px; }
.request-panel form { gap: 12px; }
.form-field label { font-weight: 750; font-size: .9rem; }
.form-field input { width: 100%; padding: 9px 10px; border: 1px solid #9db7ae; border-radius: 6px; background: #fbfcfb; color: var(--ink); font: inherit; }
.request-panel button { width: fit-content; border: 0; font-family: inherit; cursor: pointer; }
.request-panel button:disabled { opacity: .66; }
.form-error { color: #8c3030; font-size: .8rem; }
.form-status:empty, .form-error:empty { display: none; }

.reading { padding-block: 12px 64px; }
.reading-head { padding: clamp(20px,5vw,52px); margin-bottom: 28px; background: linear-gradient(120deg,#dfeee8,#e8efeb 65%,#dce8e8); border-radius: 12px; }
.reading-head p { margin-top: 14px; color: var(--muted); font-size: .93rem; }
.reading-text { max-width: 75ch; margin-inline: auto; }
.rich-text { min-width: 0; overflow-wrap: anywhere; }
.rich-text :is(p,ul,ol,figure,table) { margin: .75em 0; }
.rich-text :is(h2,h3,h4) { margin: 1.25em 0 .45em; line-height: 1.24; }
.rich-text :is(a) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rich-text :is(img,iframe) { max-width: 100%; height: auto; }
.rich-text table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.rich-text :is(th,td) { border: 1px solid var(--line); padding: 7px; }
.reading-links { margin-top: 25px; }

@media (max-width: 940px) {
  .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-group:nth-child(3) { border-left: 0; padding-left: 0; }
  .directory-group:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 710px) {
  .port-phones .port-lower, .port-phones .port-upper { width: 32%; }
  .port-phones .port-lower { right: 23%; top: 60%; }
  .port-phones .port-upper { right: 4%; top: 25%; }
  .secondary-card .tile-device { width: 25%; }
  .directory-grid { grid-template-columns: 1fr; }
  .breadcrumb { margin-block: 16px 12px; }
  .product-hero, .product-hero-desktop { grid-template-columns: 1fr; gap: 20px; padding-bottom: 29px; }
  .product-intro { margin-top: 13px; }
  .product-stage, .product-hero-desktop .product-stage { min-height: 0; padding: 19px; }
  .product-stage .device-phone { max-width: 205px; }
  .store-editions { margin-top: 16px; }
  .page-section { padding-block: 26px; }
  .page-section:last-child { padding-bottom: 37px; }
  .capability-grid, .request-panel { grid-template-columns: 1fr; }
  .capability { padding: 15px; }
  .screenshot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .screenshot-grid-desktop { grid-template-columns: 1fr; }
  .screenshot-panel { padding: 12px; }
  .screenshot figcaption { font-size: .76rem; }
  .reading { padding-bottom: 36px; }
}
@media (max-width: 360px) {
  .store-links .primary-action { padding-inline: 10px; gap: 8px; }
  .port-phones .port-lower { right: 20%; }
  .screenshot-panel { padding: 8px; }
  .comparison :is(th,td) { padding: 6px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.footer-links { flex-wrap: wrap; row-gap: 10px; }
.reading-image { border-radius: 10px; margin: 0 0 16px; }

.resource-list a { grid-template-columns: minmax(0,1fr) auto auto; }
.resource-list a > :first-child, .resource-list small { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .resource-list a { grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; }
  .resource-list a > small { grid-column: 1; grid-row: 2; }
  .resource-list a > span:last-child { grid-column: 2; grid-row: 1; }
}
