/* HTML Kits / Apple Minimal. Original web styles inspired by restrained product design.
   No Apple assets, proprietary fonts, or remote dependencies. */
:root {
  color-scheme: light;
  --am-bg: #fff;
  --am-surface: #f5f5f7;
  --am-raised: #fff;
  --am-text: #1d1d1f;
  --am-muted: #6e6e73;
  --am-line: #d2d2d7;
  --am-soft-line: #e8e8ed;
  --am-accent: #0071e3;
  --am-accent-hover: #0066cc;
  --am-link: #0066cc;
  --am-on-accent: #fff;
  --am-accent-soft: #eaf3ff;
  --am-success: #247344;
  --am-error: #b42318;
  --am-header: #ffffffed;
  --am-note: #f7f4ec;
  --am-shadow: 0 24px 70px #1d1d1f10, 0 4px 16px #1d1d1f06;
  --am-radius: 24px;
  --am-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --am-bg: #101011;
  --am-surface: #1c1c1e;
  --am-raised: #242426;
  --am-text: #f5f5f7;
  --am-muted: #a1a1a6;
  --am-line: #515154;
  --am-soft-line: #38383b;
  --am-accent: #0071e3;
  --am-accent-hover: #0066cc;
  --am-link: #64adff;
  --am-on-accent: #fff;
  --am-accent-soft: #142c47;
  --am-success: #73ce96;
  --am-error: #ff8c82;
  --am-header: #101011ed;
  --am-note: #302d23;
  --am-shadow: 0 24px 70px #0005, 0 4px 16px #0003;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--am-bg); color: var(--am-text); font: 16px/1.6 var(--am-font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--am-link); text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--am-accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 650; }
h1 { font-size: clamp(44px, 6.8vw, 80px); letter-spacing: -.045em; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; margin-bottom: 20px; }
h3 { font-size: 23px; letter-spacing: -.02em; margin-bottom: 12px; }
.am-container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.am-skip { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 10px 20px; border-radius: 12px; background: var(--am-raised); }
.am-skip:focus { top: 12px; }
.am-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--am-soft-line); background: var(--am-header); backdrop-filter: blur(18px); }
.am-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.am-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 650; color: var(--am-text); text-decoration: none; letter-spacing: -.6px; white-space: nowrap; }
.am-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--am-bg); background: var(--am-text); border-radius: 8px; font: 650 18px/1 var(--am-font); }
.am-nav { display: flex; gap: 28px; align-items: center; }
.am-nav a { font-size: 13px; color: var(--am-muted); text-decoration: none; }
.am-nav a:hover { color: var(--am-text); }
.am-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 23px; border: 1px solid transparent; border-radius: 999px; background: var(--am-accent); color: var(--am-on-accent); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.4; transition: background .18s ease, transform .18s ease; }
.am-btn:hover { background: var(--am-accent-hover); }
.am-btn:active:not(:disabled) { transform: scale(.98); }
.am-btn-secondary { color: var(--am-text); border-color: var(--am-line); background: transparent; }
.am-btn-secondary:hover { background: var(--am-surface); }
.am-btn-link { color: var(--am-link); background: transparent; padding-inline: 8px; }
.am-btn-link:hover { background: var(--am-accent-soft); }
.am-btn-small { min-height: 36px; padding: 7px 16px; font-size: 12px; }
.am-icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--am-text); }
.am-icon-button:hover { background: var(--am-surface); }
.am-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.am-hero { text-align: center; padding: 82px 0 48px; }
.am-eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--am-muted); margin-bottom: 23px; letter-spacing: .03em; }
.am-hero .am-eyebrow { color: var(--am-link); }
.am-lead { max-width: 640px; margin: 0 auto 27px; font-size: clamp(17px, 2.2vw, 21px); color: var(--am-muted); line-height: 1.7; }
.am-hero .am-actions { justify-content: center; }
.am-caption { color: var(--am-muted); font-size: 12px; margin: 16px 0 0; }
.am-product { margin: 0 auto; border-radius: 18px; border: 1px solid var(--am-line); background: var(--am-raised); overflow: hidden; box-shadow: var(--am-shadow); }
.am-windowbar { height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--am-soft-line); background: var(--am-surface); }
.am-windowbar i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--am-line); }
.am-windowbar span { margin: 0 auto; padding-right: 45px; font-size: 11px; letter-spacing: .03em; color: var(--am-muted); }
.am-app { display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.am-app-sidebar { padding: 26px 15px; background: var(--am-surface); border-right: 1px solid var(--am-soft-line); }
.am-sidebar-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--am-muted); padding-inline: 12px; margin-bottom: 18px; }
.am-app-nav { display: flex; flex-direction: column; gap: 6px; }
.am-app-nav button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; border: 0; border-radius: 8px; padding: 8px 12px; text-align: left; background: transparent; color: var(--am-muted); font-size: 13px; }
.am-app-nav button[aria-selected="true"] { background: var(--am-accent-soft); color: var(--am-link); }
.am-sidebar-note { margin: 90px 12px 0; font-size: 11px; color: var(--am-muted); }
.am-app-content { padding: 32px 36px; min-width: 0; }
.am-app-content h3 { font-size: 25px; margin-bottom: 6px; }
.am-app-content p { margin-bottom: 22px; }
.am-app-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.am-small { font-size: 13px; }
.am-muted { color: var(--am-muted); }
.am-checklist { display: flex; flex-direction: column; gap: 0; }
.am-check { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 14px; cursor: pointer; }
.am-check input { width: 18px; height: 18px; accent-color: var(--am-accent); flex-shrink: 0; }
.am-checklist .am-check { padding: 10px 0; border-bottom: 1px solid var(--am-soft-line); }
.am-checklist input:checked + span { color: var(--am-muted); text-decoration: line-through; }
.am-note { padding: 22px; border-radius: 14px; background: var(--am-note); }
.am-note p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.am-note .am-eyebrow { margin-bottom: 12px; font-size: 11px; }
.am-note .am-btn-link { min-height: 32px; padding: 0; font-size: 12px; }
.am-progress { width: 100%; height: 5px; accent-color: var(--am-accent); border: 0; border-radius: 999px; overflow: hidden; background: var(--am-soft-line); }
.am-progress::-webkit-progress-bar { background: var(--am-soft-line); }
.am-progress::-webkit-progress-value { background: var(--am-accent); border-radius: 999px; }
.am-progress::-moz-progress-bar { background: var(--am-accent); }
.am-proof { display: flex; justify-content: center; gap: 50px; padding: 35px 0 62px; color: var(--am-muted); font-size: 12px; }
.am-proof span { display: flex; align-items: center; gap: 8px; }
.am-section { padding: 78px 0; }
.am-section-soft { background: var(--am-surface); }
.am-section-heading { max-width: 650px; margin-bottom: 42px; }
.am-section-heading p { color: var(--am-muted); font-size: 18px; }
.am-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.am-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-card { min-width: 0; background: var(--am-raised); padding: 34px; border-radius: var(--am-radius); }
.am-card-bordered { border: 1px solid var(--am-soft-line); }
.am-card p { color: var(--am-muted); }
.am-card > :last-child { margin-bottom: 0; }
.am-card-number { font-size: 12px; color: var(--am-muted); display: block; margin-bottom: 44px; }
.am-card h3 { font-size: 26px; }
.am-card-visual { min-height: 140px; display: grid; place-items: center; margin-top: 28px; border-radius: 16px; background: var(--am-surface); padding: 24px; }
.am-card-visual .am-mini-note { border: 1px solid var(--am-soft-line); border-radius: 10px; background: var(--am-raised); padding: 16px 24px; box-shadow: 0 8px 20px #00000006; font-size: 13px; }
.am-mini-lines { width: 100%; max-width: 150px; display: grid; gap: 12px; }
.am-mini-lines span { height: 6px; background: var(--am-line); border-radius: 99px; }
.am-mini-lines span:nth-child(2) { width: 75%; }
.am-mini-lines span:last-child { width: 50%; background: var(--am-accent); }
.am-stack { display: flex; flex-direction: column; gap: 18px; }
.am-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.am-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; }
.am-input, .am-select, .am-textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--am-line); border-radius: 10px; background: var(--am-raised); color: var(--am-text); padding: 12px 14px; outline-offset: 3px; font-size: 15px; }
.am-input::placeholder, .am-textarea::placeholder { color: var(--am-muted); }
.am-textarea { resize: vertical; min-height: 110px; }
.am-help { font-size: 12px; color: var(--am-muted); font-weight: 400; }
.am-error { color: var(--am-error); }
.am-input[aria-invalid="true"] { border-color: var(--am-error); }
.am-switch { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; cursor: pointer; font-size: 14px; }
.am-switch input { appearance: none; width: 44px; height: 26px; border: 1px solid var(--am-line); border-radius: 99px; background: var(--am-line); margin: 0; position: relative; flex-shrink: 0; cursor: pointer; transition: background .18s ease; }
.am-switch input::before { content: ""; width: 20px; height: 20px; position: absolute; inset: 2px auto auto 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; transition: transform .18s ease; }
.am-switch input:checked { background: var(--am-accent); border-color: var(--am-accent); }
.am-switch input:checked::before { transform: translateX(18px); }
.am-tabs { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; background: var(--am-surface); border: 1px solid var(--am-soft-line); border-radius: 12px; }
.am-tabs button { min-height: 40px; padding: 8px 22px; border: 0; border-radius: 8px; color: var(--am-muted); background: transparent; font-size: 13px; }
.am-tabs button[aria-selected="true"] { background: var(--am-raised); color: var(--am-text); box-shadow: 0 1px 5px #00000012; }
.am-tabpanel { padding-block: 22px; }
.am-range { width: 100%; accent-color: var(--am-accent); min-height: 32px; }
.am-badge { display: inline-block; padding: 4px 10px; background: var(--am-accent-soft); color: var(--am-link); border-radius: 7px; font-size: 11px; font-weight: 550; }
.am-status { padding: 16px 18px; border-radius: 12px; background: var(--am-surface); color: var(--am-text); font-size: 14px; }
.am-status-success { border-left: 3px solid var(--am-success); }
.am-details { border-bottom: 1px solid var(--am-soft-line); padding-block: 18px; }
.am-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; font-size: 17px; font-weight: 550; cursor: pointer; min-height: 32px; }
.am-details summary::-webkit-details-marker { display: none; }
.am-details summary::after { content: "+"; font-size: 24px; color: var(--am-muted); font-weight: 400; }
.am-details[open] summary::after { content: "−"; }
.am-details p { margin: 16px 0 0; color: var(--am-muted); max-width: 720px; }
.am-specs { margin: 0; }
.am-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--am-soft-line); }
.am-specs dt { color: var(--am-muted); font-size: 14px; }
.am-specs dd { margin: 0; font-size: 14px; text-align: right; }
.am-dialog { border: 1px solid var(--am-soft-line); border-radius: 24px; padding: 34px; background: var(--am-raised); color: var(--am-text); width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; box-shadow: var(--am-shadow); }
.am-dialog::backdrop { background: #0006; backdrop-filter: blur(5px); }
.am-dialog h2 { font-size: 27px; }
.am-dialog .am-actions { justify-content: flex-end; margin-top: 26px; }
.am-dialog form > .am-help { margin-top: 12px; }
.am-toast { position: fixed; z-index: 50; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 14px; background: var(--am-text); color: var(--am-bg); box-shadow: 0 4px 25px #0002; font-size: 14px; }
.am-footer { border-top: 1px solid var(--am-soft-line); padding: 25px 0; color: var(--am-muted); font-size: 12px; }
.am-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.am-gallery-hero { padding: 64px 0 42px; }
.am-gallery-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.am-gallery .am-card h3 { font-size: 22px; }
.am-gallery .am-card { padding: 28px; }
.am-demo { padding-block: 20px 8px; }
.am-code { font: 12px/1.7 Consolas, monospace; color: var(--am-muted); overflow-wrap: anywhere; }
.am-swatch { padding: 24px; border-radius: 16px; min-height: 100px; display: flex; align-items: end; border: 1px solid var(--am-soft-line); font-size: 13px; }
@media (max-width: 900px) {
  .am-container { width: min(1120px, calc(100% - 40px)); }
  .am-app { grid-template-columns: 148px minmax(0, 1fr); }
  .am-app-content { padding: 26px; }
  .am-app-grid { grid-template-columns: 1fr; }
  .am-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-grid > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .am-card { padding: 26px; }
}
@media (max-width: 600px) {
  .am-container { width: calc(100% - 32px); }
  .am-header-inner { gap: 12px; min-height: 62px; }
  .am-nav { gap: 14px; }
  .am-nav a { display: none; }
  .am-hero { padding-top: 52px; }
  h1 { font-size: 44px; letter-spacing: -.04em; }
  .am-lead { font-size: 17px; }
  .am-hero .am-actions { gap: 10px; }
  .am-app { grid-template-columns: 1fr; }
  .am-app-sidebar { border-right: 0; border-bottom: 1px solid var(--am-soft-line); padding: 12px; }
  .am-sidebar-label, .am-sidebar-note { display: none; }
  .am-app-nav { flex-direction: row; }
  .am-app-nav button { justify-content: center; }
  .am-app-content { padding: 24px 20px; }
  .am-app-content h3 { font-size: 23px; }
  .am-proof { flex-wrap: wrap; gap: 12px 24px; padding-bottom: 34px; }
  .am-section { padding: 50px 0; }
  .am-grid, .am-grid-two { grid-template-columns: 1fr; gap: 16px; }
  .am-grid > :last-child:nth-child(3) { grid-column: auto; }
  .am-card-number { margin-bottom: 24px; }
  .am-dialog { padding: 25px; }
  .am-tabs { width: 100%; }
  .am-tabs button { flex: 1; padding-inline: 10px; }
  .am-specs > div { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .am-header, .am-toast, .am-dialog { display: none; } .am-hero, .am-section { padding-block: 24px; } .am-product { box-shadow: none; } .am-card { break-inside: avoid; } }
