/* Thợ Cam page stylesheet — dark field-tool identity, colours from the app's own palette
   (bg #090D16, card #111827, line #1E293B, accent #38BDF8, text #F8FAFC). Scoped to body.tc so
   the site-wide /styles.css rules (main/footer width, nav) do not reshape the page. */
:root {
  color-scheme: dark;
  --tc-bg: #090d16;
  --tc-card: #111827;
  --tc-card-2: #0d1320;
  --tc-line: #1e293b;
  --tc-line-bright: #334155;
  --tc-text: #f8fafc;
  --tc-muted: #94a3b8;   /* 7.4:1 on --tc-bg, 6.6:1 on --tc-card */
  --tc-accent: #38bdf8;  /* 9.3:1 on --tc-bg */
  --tc-ok: #10b981;
  --tc-amber: #f59e0b;
  --tc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.tc {
  margin: 0;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.tc main, body.tc footer, body.tc .site-header { width: auto; margin: 0; }
.tc h1, .tc h2, .tc h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
.tc p { margin: 0; }
.tc a { color: inherit; }
.tc img { max-width: 100%; }

.tc-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.tc .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; min-height: 0; padding: 22px 0; display: block; }
.tc .site-header .tc-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tc .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--tc-text); }
.tc .brand img { border-radius: 4px; }

/* Hero */
.tc-hero { position: relative; padding: 128px 0 88px; overflow: hidden; }
.tc-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 900px; height: 900px; max-width: 140vw;
  background: radial-gradient(circle, rgba(56,189,248,.12) 0%, transparent 62%); pointer-events: none;
}
.tc-hero .tc-container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.tc-icon { width: 72px; height: 72px; border-radius: 18px; display: block; margin-bottom: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tc-eyebrow { font: 700 12px/1 var(--tc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tc-accent); margin-bottom: 16px !important; }
.tc-title { font-size: clamp(44px, 6vw, 72px); font-weight: 750; margin-bottom: 14px !important; }
.tc-subtitle { font-size: clamp(20px, 2.4vw, 26px); color: var(--tc-accent); margin-bottom: 20px !important; line-height: 1.3; }
.tc-lead { font-size: 18px; color: var(--tc-muted); max-width: 520px; margin-bottom: 28px !important; }
.tc-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--tc-line-bright); background: rgba(255,255,255,.04); border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.tc-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-amber); }
.tc-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tc-store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; min-height: 48px; box-sizing: border-box;
  border: 1px solid var(--tc-line-bright); border-radius: 12px; background: #000; color: var(--tc-text); cursor: default;
}
.tc-store svg { width: 22px; height: 22px; flex: none; fill: currentColor; opacity: .9; }
.tc-store span { display: flex; flex-direction: column; line-height: 1.15; }
.tc-store small { font-size: 11px; color: var(--tc-muted); letter-spacing: .02em; }
.tc-store b { font-size: 16px; font-weight: 600; }
a.tc-store { cursor: pointer; text-decoration: none; border-color: var(--tc-accent); }
a.tc-store:hover, a.tc-store:focus-visible { background: rgba(56,189,248,.12); }
a.tc-store b { color: var(--tc-accent); }
.tc-note { margin-top: 18px !important; font-size: 13px; color: var(--tc-muted); }

/* Device frames */
.tc-visual { position: relative; padding: 0 0 12% 12%; }
.tc-desk { position: relative; border-radius: 14px; background: #0b0f17; border: 1px solid var(--tc-line-bright); box-shadow: 0 30px 70px rgba(0,0,0,.6); overflow: hidden; }
.tc-desk-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #151c2b; border-bottom: 1px solid var(--tc-line); }
.tc-desk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.tc-desk img { display: block; width: 100%; height: auto; }
.tc-phone { position: relative; border: 6px solid #1a2130; border-radius: 30px; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.tc-phone img { display: block; width: 100%; height: auto; }
.tc-visual .tc-phone { position: absolute; left: 0; bottom: 0; width: 31%; border-width: 5px; border-radius: 24px; }

/* Flow strip: the app's four tabs and the Scan button */
.tc-flow { border-top: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line); background: var(--tc-card-2); }
.tc-flow ol { list-style: none; margin: 0 auto; padding: 22px 20px; max-width: 1180px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tc-flow li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--tc-line-bright); }
.tc-flow li.is-scan { border-left-color: var(--tc-accent); }
.tc-flow b { font-size: 15px; }
.tc-flow span { font-size: 13px; color: var(--tc-muted); line-height: 1.4; }

/* Feature rows */
.tc-row { padding: 104px 0; border-bottom: 1px solid var(--tc-line); }
.tc-row .tc-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.tc-row.reverse .tc-text { order: 2; }
.tc-row.reverse .tc-art { order: 1; }
.tc .tc-kicker { font: 700 12px/1 var(--tc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tc-accent); margin-bottom: 14px !important; }
.tc-text h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.tc-text > p { font-size: 18px; color: var(--tc-muted); }
.tc-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tc-list li { position: relative; padding-left: 22px; color: #cbd5e1; font-size: 16px; }
.tc-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--tc-accent); }
.tc-pro { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--tc-accent); color: var(--tc-accent); font: 700 11px/1.5 var(--tc-mono); letter-spacing: .06em; vertical-align: 2px; }
.tc-art { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.tc-art .tc-phone { flex: 0 1 270px; min-width: 0; }
.tc-art .tc-phone + .tc-phone { margin-top: 56px; }
.tc-art.wide { display: block; position: relative; padding-bottom: 10%; padding-right: 10%; }
.tc-art.wide .tc-phone { position: absolute; right: 0; bottom: 0; width: 30%; border-width: 5px; border-radius: 22px; }

/* Cards */
.tc-section { padding: 104px 0; border-bottom: 1px solid var(--tc-line); }
.tc-section-head { max-width: 720px; margin-bottom: 48px; }
.tc-section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.tc-section-head p { font-size: 18px; color: var(--tc-muted); }
.tc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tc-card { padding: 28px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 20px; }
.tc-card h3 { font-size: 20px; margin-bottom: 10px; }
.tc-card p { color: var(--tc-muted); font-size: 16px; }
.tc-card .tc-list { margin-top: 16px; }
.tc-card a { color: var(--tc-accent); }
.tc-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tc-plan-pro { background: linear-gradient(150deg, var(--tc-card), rgba(56,189,248,.08)); border-color: rgba(56,189,248,.35); }
.tc-plans + .tc-fine { margin-top: 20px !important; }
.tc-fine { font-size: 14px; color: var(--tc-muted); }

/* Footer */
.tc-footer { padding: 40px 0 48px; color: var(--tc-muted); font-size: 14px; }
.tc-footer .tc-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.tc-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tc-footer a { color: var(--tc-muted); text-decoration: none; }
.tc-footer a:hover, .tc-footer a:focus-visible { color: var(--tc-accent); }
.tc .lang-switch a[aria-current="true"] { color: var(--tc-text); }

.tc a:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 960px) {
  .tc-hero { padding: 104px 0 64px; }
  .tc-hero .tc-container { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tc-row .tc-container { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tc-row.reverse .tc-text { order: 1; }
  .tc-row.reverse .tc-art { order: 2; }
  .tc-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-flow li.is-scan { grid-column: 1 / -1; }
  .tc-row, .tc-section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .tc-container { padding: 0 16px; }
  .tc-flow ol { padding: 18px 16px; }
  .tc-lead, .tc-text > p, .tc-section-head p { font-size: 17px; }
  .tc-art .tc-phone + .tc-phone { margin-top: 36px; }
  .tc-art { gap: 12px; }
  .tc-art .tc-phone { border-width: 4px; border-radius: 20px; }
  .tc-plans { grid-template-columns: minmax(0, 1fr); }
  .tc-card { padding: 22px; }
}

/* Japanese: break at phrase boundaries, not mid-word */
:lang(ja) .tc-title, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) li { word-break: auto-phrase; line-break: strict; }
body.tc:lang(ja) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}
