:root {
  --teal: #0f6b6b;
  --teal-dark: #0a5151;
  --teal-soft: #e7f1f0;
  --ink: #142120;
  --muted: #586866;
  --line: #e1e7e6;
  --bg: #fafbfa;
  --card: #fff;
  --warn: #8a4b00;
  --warn-bg: #fff4e5;
  --bad: #a3271f;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 720; }
h3 { font-size: 1.1rem; font-weight: 680; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #7cc4c4; outline-offset: 2px; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--teal); background: var(--teal); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: default; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #c9d3d2; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(15, 107, 107, .15); }
.field { margin-bottom: 18px; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-size: .95rem; }
.msg.err { background: #fdecea; color: var(--bad); }
.msg.ok { background: var(--teal-soft); color: var(--teal-dark); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(250, 251, 250, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 750; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav .links { display: none; gap: 22px; margin-left: 18px; }
.nav .links a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 10px 0; }
.nav .links a:hover { color: var(--ink); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav .login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 4px; }
@media (min-width: 860px) { .nav .links { display: flex; } }
@media (max-width: 380px) { .nav .btn { padding: 0 14px; } }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .grid { display: grid; gap: 40px; }
.hero .sub { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 650; color: var(--teal); background: var(--teal-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (min-width: 980px) { .hero { padding: 84px 0 64px; } .hero .grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; } }

/* the product screen (sample) */
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(20, 33, 32, .04), 0 18px 40px -18px rgba(15, 107, 107, .28); overflow: hidden; }
.screen .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f6f9f8; }
.screen .bar b { font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; background: #fff; }
.tag.new { color: var(--teal); border-color: #b9d8d6; background: var(--teal-soft); }

/* office rows: the sample and the app share them */
.office { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.office:last-child { border-bottom: 0; }
.office .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.office h3 { margin: 0 0 2px; font-size: 1.02rem; }
.office .kind { color: var(--teal-dark); font-size: .9rem; font-weight: 600; }
.office .addr { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.office .date { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.office .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1.5px solid #c9d3d2; background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.call { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip.call:hover { background: var(--teal-dark); color: #fff; }
.chip[aria-pressed=true] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.chip[aria-pressed=true]::before { content: "✓"; }
.opener { margin-top: 12px; background: var(--teal-soft); border-radius: 10px; padding: 12px 14px; font-size: .94rem; white-space: pre-wrap; }
.opener .lbl { display: block; font-size: .85rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 4px; }
.office .oname { margin: 0 0 2px; font-size: 1.02rem; font-weight: 680; line-height: 1.3; }
p, li, .hint, .addr { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* sections */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 40em; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.features { display: grid; gap: 16px; margin-top: 32px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* try box */
.try { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.try form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.try input { flex: 1 1 160px; max-width: 220px; }
.try .out { margin-top: 18px; }
.try .out .office { padding: 12px 0; }

/* email example */
.mail { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mail .head { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f6f9f8; font-size: .92rem; }
.mail .head div + div { color: var(--muted); }
.mail .body { padding: 18px 20px; font-size: .95rem; }
.mail .body .office { padding: 12px 0; }
.mail .body h4 { margin: 18px 0 4px; font-size: .95rem; }

/* price */
.plan { background: var(--card); border: 2px solid var(--teal); border-radius: 18px; padding: 30px 26px; max-width: 460px; margin-top: 30px; }
.plan .amount { font-size: 3rem; font-weight: 780; letter-spacing: -0.02em; line-height: 1; }
.plan .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { padding: 0; list-style: none; margin: 22px 0 26px; }
.plan li { padding: 7px 0 7px 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 10px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* faq */
.faq { margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }
.source { margin-top: 34px; padding: 22px; border-radius: var(--radius); background: var(--teal-soft); }
.source p:last-child { margin: 0; }

/* band */
.band { background: var(--teal); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #d6ebe9; }
.band .btn { background: #fff; color: var(--teal-dark); border-color: #fff; margin-top: 10px; }
.band .btn:hover { background: var(--teal-soft); }

/* footer */
footer.foot { padding: 40px 0 48px; font-size: .92rem; color: var(--muted); }
footer.foot .wrap { display: grid; gap: 14px; }
footer.foot .syng-legal-links a { color: var(--muted); }
footer.foot .syng-legal-links a:hover { color: var(--ink); }
@media (min-width: 760px) { footer.foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* forms pages */
.page { padding: 48px 0 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.auth { max-width: 440px; margin: 0 auto; }
.auth h1 { font-size: 1.7rem; }
.auth .btn { width: 100%; margin-top: 4px; }
.auth .alt-link { text-align: center; margin-top: 10px; font-size: .95rem; }
.auth .alt-link a, .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.linkbtn { background: none; border: 0; color: var(--teal); font: inherit; text-decoration: underline; cursor: pointer; }
.chip { min-height: 44px; }
@media (max-width: 759px) { section { padding: 48px 0; } .hero { padding: 36px 0 32px; } .steps li, .feature { padding: 18px; } }

/* app */
.appbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.appbar h1 { font-size: 1.6rem; margin: 0; }
.banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--teal-soft); color: var(--teal-dark); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: .95rem; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f6f9f8; font-size: .92rem; }
.empty { padding: 22px 18px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 0 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.settings summary { cursor: pointer; font-weight: 650; color: var(--teal); padding: 6px 0; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 680px) { .row2 { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 20px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
