/* AgentAlarm website. Generated pages live in public/; their source is resources/site. */
:root {
  color-scheme: light dark;
  --blue: #0a84ff;
  --indigo: #5e5ce6;
  --grad: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --surface: #fff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --rule: rgba(0, 0, 0, .1);
  --link: #0066cc;
  --accent-text: #0a6ee0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --header: rgba(255, 255, 255, .78);
  --bubble: rgba(10, 132, 255, .1);
  --frame: #e3e3e8;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000;
    --bg-alt: #0e0e11;
    --surface: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --rule: rgba(255, 255, 255, .14);
    --link: #4da3ff;
    --accent-text: #5aa9ff;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
    --header: rgba(22, 22, 24, .78);
    --bubble: rgba(10, 132, 255, .2);
    --frame: #2c2c30;
  }
}
:root[data-theme="dark"] {
  --bg: #000;
  --bg-alt: #0e0e11;
  --surface: #1c1c1e;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --rule: rgba(255, 255, 255, .14);
  --link: #4da3ff;
  --accent-text: #5aa9ff;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  --header: rgba(22, 22, 24, .78);
  --bubble: rgba(10, 132, 255, .2);
  --frame: #2c2c30;
}
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
:lang(ja) { word-break: auto-phrase; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--header); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 1.05rem; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: none; gap: 22px; font-size: .93rem; }
.nav a { color: var(--fg); opacity: .8; }
.nav a:hover { opacity: 1; text-decoration: none; }
.top .support-link { font-size: .93rem; color: var(--fg); opacity: .8; }
@media (min-width: 860px) { .nav { display: flex; } .top .support-link { display: none; } }
.lang { position: relative; font-size: .93rem; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--fg); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--fg); }
.lang li a:hover { background: var(--bg-alt); text-decoration: none; }
.lang li a[aria-current] { font-weight: 600; color: var(--accent-text); }

/* Type */
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.kicker { color: var(--accent-text); font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.2rem; margin-top: 14px; max-width: 40rem; text-wrap: pretty; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 1.02rem; color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(10, 132, 255, .3); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.soon { cursor: default; }
.btn.soon:hover { filter: none; }
.link-more { font-weight: 600; font-size: 1.02rem; }
.link-more::after { content: " \203A"; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(94, 92, 230, .16), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-text { text-align: center; }
.app-id { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.15rem; margin-bottom: 22px; }
.app-id img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 18px rgba(10, 60, 200, .25); }
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 20px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: center; margin-top: 30px; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 16px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero-text { text-align: left; }
  .hero .lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
}

/* Hero illustration: an alert ringing on the Lock Screen */
.art { position: relative; display: grid; place-items: center; padding: 20px 0; }
.art .ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(10, 132, 255, .35); }
.art .ring:nth-child(2) { width: 400px; height: 400px; border-color: rgba(94, 92, 230, .22); }
.art .ring:nth-child(3) { width: 500px; height: 500px; border-color: rgba(94, 92, 230, .12); }
@media (prefers-reduced-motion: no-preference) {
  .art .ring { animation: pulse 2.4s ease-out infinite; }
  .art .ring:nth-child(2) { animation-delay: .3s; }
  .art .ring:nth-child(3) { animation-delay: .6s; }
  @keyframes pulse { 0% { transform: scale(.92); opacity: .2; } 40% { opacity: 1; } 100% { transform: scale(1.04); opacity: .2; } }
}
.phone { position: relative; width: 268px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px; background: #1d1d1f; box-shadow: 0 30px 80px rgba(20, 30, 90, .35), inset 0 0 0 2px #3a3a3e; }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; color: #fff; display: flex; flex-direction: column; align-items: center; padding: 22px 16px 22px; background: radial-gradient(120% 60% at 50% 0%, #3954d6 0%, transparent 60%), linear-gradient(180deg, #0b1d4a 0%, #1a1f5c 55%, #2b1e63 100%); }
.screen::before { content: ""; width: 74px; height: 22px; border-radius: 12px; background: #000; margin-bottom: 16px; }
.ls-time { font-size: 64px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.ls-date { font-size: 13px; opacity: .8; margin-top: 6px; }
.alarm { margin-top: auto; width: 100%; text-align: center; }
.alarm-app { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.alarm-app img { width: 18px; height: 18px; border-radius: 5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.alarm-title { font-size: 25px; font-weight: 700; line-height: 1.15; margin: 10px 0 4px; letter-spacing: -.01em; }
.alarm-body { font-size: 13px; opacity: .8; }
.alarm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 22px; }
.alarm-actions span { display: grid; place-items: center; height: 46px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.alarm-actions .snooze { background: rgba(255, 255, 255, .2); }
.alarm-actions .done { background: #ff6a2c; }

/* Cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .grid.features { grid-template-columns: repeat(2, 1fr); } .grid.features > :first-child { grid-column: span 2; } }
@media (min-width: 1000px) { .grid.features { grid-template-columns: repeat(4, 1fr); } }
.grid.features > :first-child { background: var(--grad); color: #fff; }
.grid.features > :first-child p { color: rgba(255, 255, 255, .88); }
.grid.features > :first-child .icon { background: rgba(255, 255, 255, .2); }
.grid.features > :first-child h3 { font-size: 1.5rem; }
.card { background: var(--surface); border-radius: 22px; padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.section:not(.alt) .card { background: var(--bg-alt); box-shadow: none; }
.card p { color: var(--muted); margin: 8px 0 18px; }
.card p:last-child { margin-bottom: 0; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 18px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.bubble { margin-top: auto; align-self: flex-start; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--bubble); color: var(--fg); font-size: .98rem; }

/* Compatibility */
.compat { max-width: 46rem; margin: 0 auto; text-align: center; }
.compat p:not(.kicker) { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 58%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 16px; scrollbar-width: thin; }
.shots figure { margin: 0; scroll-snap-align: center; }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; } }
.shot { aspect-ratio: 1320 / 2868; border-radius: 26px; border: 6px solid var(--frame); background: var(--surface); overflow: hidden; display: grid; place-items: center; text-align: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.placeholder { background: linear-gradient(160deg, rgba(10, 132, 255, .1), rgba(94, 92, 230, .14)), var(--surface); color: var(--muted); font-size: .9rem; padding: 16px; }
.shot.placeholder img { width: 44px; height: 44px; border-radius: 10px; margin: 0 auto 12px; opacity: .85; }
.shots figcaption { text-align: center; font-size: .93rem; font-weight: 600; margin-top: 12px; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* Closing call to action */
.band { background: var(--grad); color: #fff; border-radius: 30px; padding: 56px 28px; text-align: center; }
.band p { opacity: .9; margin-top: 12px; font-size: 1.1rem; }
.band .btn { background: #fff; color: #1d4fd6; box-shadow: none; margin-top: 26px; }

/* Footer */
.foot { background: var(--bg-alt); border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: .92rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { color: var(--fg); }
.foot .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; }
.foot .langs a { color: var(--muted); }
.foot .langs a[aria-current] { color: var(--fg); font-weight: 600; }
.foot .small { margin-top: 18px; }

/* Support and other text pages */
.doc { max-width: 44rem; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.doc .lead { margin-top: 12px; }
.contact { margin: 32px 0 8px; padding: 26px; border-radius: 22px; background: var(--bg-alt); }
.contact .mail { display: inline-block; font-size: 1.35rem; font-weight: 700; margin: 6px 0 8px; word-break: break-all; }
.contact p { color: var(--muted); }
.toc { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
@media (min-width: 640px) { .toc { grid-template-columns: 1fr 1fr; } }
.toc a { display: block; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 14px; color: var(--fg); font-weight: 500; }
.toc a:hover { border-color: var(--blue); text-decoration: none; }
.topic { padding-top: 40px; }
.topic h2 { font-size: 1.55rem; margin-bottom: 12px; }
.topic p, .topic li { color: var(--muted); }
.topic p + p, .topic p + ol, .topic p + ul, .topic ol + p, .topic ul + p { margin-top: 12px; }
.topic ol, .topic ul { margin: 0; padding-left: 1.3rem; }
.topic li + li { margin-top: 8px; }
.topic strong { color: var(--fg); font-weight: 600; }

/* Language chooser at / and /support/ */
.chooser { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.chooser img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; }
.chooser h1 { font-size: 2rem; }
.chooser p { color: var(--muted); margin-top: 8px; }
.chooser > div { width: 100%; max-width: 520px; }
.chooser ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.chooser li a { display: block; padding: 12px; border-radius: 14px; background: var(--bg-alt); color: var(--fg); font-weight: 500; }
.plain { list-style: none; margin: 0; padding: 0; }
.section.flush-top { padding-top: 0; }
