/* AWM Co., Ltd. — shared styles */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #16151a;
  --muted: #5d5b63;
  --line: #e4e1da;
  --accent: #2b4cdb;
  --accent-ink: #ffffff;
  --gold: #b08a3e;
  --radius: 16px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 24px rgba(20, 20, 30, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #17171c;
    --surface-2: #1e1e25;
    --text: #f2f1ee;
    --muted: #a3a1ab;
    --line: #2a2a33;
    --accent: #7f97ff;
    --accent-ink: #0f0f12;
    --gold: #d6b26a;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav { gap: 14px; font-size: .88rem; } .nav .hide-sm { display: none; } }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 40px; }

/* Hero */
.hero { padding: 112px 0 96px; }
.hero h1 { max-width: 820px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { opacity: .88; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); margin-bottom: 18px; font-size: 1.4rem;
}

/* App tiles */
.app-tile { flex-direction: row; gap: 18px; align-items: flex-start; }
.app-icon {
  flex: none; width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, #5b7cff, #a26bff);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.6rem;
}
.app-icon.lg { width: 112px; height: 112px; border-radius: 26px; font-size: 2.4rem; }
img.app-icon { object-fit: cover; background: none; box-shadow: 0 0 0 1px var(--line); }
.lang-switch { display: flex; gap: 6px; font-size: .9rem; margin: 8px 0 0; }
.lang-switch a { color: var(--muted); }
.lang-switch a + a::before { content: "·"; margin-right: 6px; color: var(--line); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.contact-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 20px 0 8px; }
.contact-box p { margin: 0; }
.app-icon.placeholder { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.app-tile .links { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; margin-top: 6px; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); margin-bottom: 8px;
}

/* Jewelry feature */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.feature-art {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(135deg, #e9d9b3, #b08a3e 60%, #6e5222);
  display: grid; place-items: center; color: #fff;
  font-family: "Didot", "Bodoni 72", Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .06em;
}

/* Facts table */
.facts { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Document pages (privacy, support) */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.note {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; color: var(--muted); font-size: .95rem;
}
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* App sub-nav */
.app-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.app-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.app-nav a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.app-nav a:hover { text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: .9rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
